what is work of continue statement in C#?

Answer Posted / ramya

The continue statement passes control to the next iteration
of the enclosing iteration statement in which it appears
using System;
class ContinueTest
{
public static void Main()
{
for (int i = 1; i <= 10; i++)
{
if (i < 9)
continue;
Console.WriteLine(i);
}
}
}

o/p:
9
10

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does clr stand for?

576


What is strong name in c# and how can we use it?

620


What are actions in c#?

559


Is there a way of specifying which block or loop to break out of when working with nested loops?

629


How can I get around scope problems in a try/catch?

552






What is difference between var dynamic and object in c#?

588


Howmany five tracing levels in System.Diagnostics.TraceSwitcher? Why they are using?

614


How do I link two windows forms in c#?

549


How do I enforce const correctness in c#?

609


What is use of private class in c#?

614


4. Describe the process when we send a request URL? And who is responsible for that?

1561


Contrast between an interface and abstract class?

631


What is the purpose of dictionary in c#?

543


How to Install uninstall assemblies into GAC?

579


What is c# and why it is used for?

586