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
Why array is faster than arraylist in c#?
What is the difference between as and is operators in c#?
How can you force derived classes to provide new method implementations for virtual methods?
Are arrays value types or reference types?
What is c# most used for?
How to find type of variable?
What is a custom attribute?
What is a must for multitasking
What is singleordefault c#?
Explain when should you call the garbage collector in .net?
What is the difference between hashtable and dictionary?
Is there an equivalent to the instanceof operator in visual j++?
What is transparent caching with aop ?
What can we do to handle multiple exceptions?
What types of object can I throw as exceptions?