Answer Posted / aditya n bokade ctrainer
continue statement skips a particular PASS of the loop.
continue statement:
--> skips all the statements mentioned after it inside a loop
--> goes to the next pass by incrementing counter variable
eg.
for (int i = 1; i <= 10; i++)
{
if (i % 2 == 0)
{
continue;
}
MessageBox.Show(i.ToString());//will be skipped when i is even
}
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
List some of the basic string operation?
Why is c# a good programming language?
What is semaphore in c#?
Which class comes after the SortedList class?
Are cao stateful in nature?
Is lazy thread safe c#?
Are c# generics the same as c++ templates?
Why do we use Design Pattern in C#?
How many types of constructors are there?
What is the use of expression tree in c#?
What is the difference between iqueryable and ienumerable?
Give an example to show for hiding base class methods?
What is private constructor c#?
What is cls, cts and clr in net?
Why should you override the tostring() method?