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 an Structure and Class?
What is the difference between proc. Sent by val and by sub?
What is deferred execution?
Are string objects mutable or immutable?
Explain attributes in c#?
Can a class have more than 1 destructor?
Is it possible to inherit multiple interfaces?
What is a predicate in c#?
What are Memory foot print of an exe?
Define delay signing?
What are methods c#?
Distinguish between continue and break statement?
What is the difference between system.string and system.text.stringbuilder classes?
Is var a data type?
Can the accessibility of a type member be greater than the accessibility of its containing type?