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 dll in vb.net?
What are methods in C#?
What is literal in c#?
What is attribute c#?
What are the return types in c#?
What is the difference between paramaterized constructor and copy constructor?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
What is the extension of c# file?
What is hashtable in c# with example?
What is dbcontext c#?
What are interfaces in c#?
What is a helper method in c#?
Are multiple data types stored in System.Array?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
What is the difference between System.console.WriteLine() and System.console.Write() function?example?