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
Why do we need static class in c#?
Distinguish between array and arraylist in c#?
How more than one version of an assembly can keep in same place?
To catch any possible exception What is the C# syntax written ?
Does c# support multiple class inheritance?
Why do we need ienumerable in c#?
What is a private class in c#?
In a memory when you Box and Unbox a value-type what happens?
What is arraylist?
What is Asynchronous call and how it can be implemented using delegates?
What is the difference between constants and read-only?
What is namespace explain with example?
Is c# and c same?
What is difference between ienumerable and ienumerator in c#?
How can we set the class to be inherited, but prevent the method from being over-ridden?