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
What is difference between out and ref in c#?
What is delegates and events?
Can I call a virtual method from a constructor/destructor?
What is mvc pattern in c#?
Explain about multithreading?
Can a private virtual method can be overridden?
What is difference between constants and readonly in c#?
What is int32?
What is parsing? How to parse a date time string?
How string definitions will prevent escaping on backslashes in C#?
What are the principles of delegation?
Is it not possible to store a boolean value as a variable?
What are delegates and why are they required?
Explain synchronous and asynchronous operations?
When a Static Constructor is called in a Class?