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 is lazy loading achieved?
What is the syntax for calling an overloaded constructor within a constructor?
How does bitwise xor work?
What is thread in c#?
What do constructors do in c#?
What is string pool in c#?
What are jump statements in c#?
What is the xml document structure?
What is the correct way of declaring an xml namespace?
For methods inside the interface why can’t you specify the accessibility modifier?
What are the types of constructors?
How many variables do you need?
Can multiple inheritance implemented in c# ?
Explain how do you directly call a native function exported from a dll?
Is c# scripting language?