C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 243 Page Views: 

Specify the ways which help in breking out the block or loop when working with the nested loops?



Posted By: Avi Date: 1 October 2010 11:51:31 AM
 Answer:

There are several ways to break out of a nested loop:- 1. The simplest and the easiest way is to use Goto 2. One can use exceptions. One can create it own exception to break the loop. 3. flag can be used up.


Posted By: avibtech


Date: 1 October 2010 11:51:31 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image QPiPcQ
Related Questions
C# : How do you declare destructor in c#?

How do you declare destructor in c#?

class T { ~T() { /*destructor code*/}}
Category: C# Date: 10/15/2010 8:23:46 AM
C# : What will be the result of this code Console.WriteLine(3/4 == 3.0/4.0);

What will be the result of this code Console.WriteLine(3/4 == 3.0/4.0);

answer is 'false'
Category: C# Date: 10/15/2010 7:40:47 AM
C# : What will be the result of the code Console.Write(String.Format(“{0:dd MMM yyyy}”, new DateTime(2009,12,23))?
C# : What will contain list t after following code?
List<int> t = new List<int>() {1,2,3};
t.ForEach((i) => i = i *2);
C# : How do you select even numbers using Where extension method on List<int>?

How do you select even numbers using Where extension method on List?

data.Where( I => I %2 == 0);
Category: C# Date: 10/15/2010 4:53:47 AM