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
How to use session under class file of APP_Code folder?
How can you reference current thread of the method ?
What are the types of parameters in c#?
How can we sort an array in c#?
What's the difference between system.string and system.text.stringbuilder classes?
What do you understand by the terms datareader object and dataset object?
What are the properties of string?
What is namespace c#?
What are custom exceptions? Why do we need them?
Is boxing an implicit conversion?
What is tryparse c#?
What are collections in c#?
Can you inherit multiple classes in c#?
Can abstract class have constructor?
Enlist some of the properties of a thread class?