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 is difference between list and dictionary in c#?

462


What is the concept of strong names?

537


Which language is used for desktop application?

480


what is IDisposal interface

673


What is the difference between string and stringbuilder in c#?

469






What is the difference between abstract class and interface in c#?

489


what is a enumeration in c#

570


What is attribute c#?

432


Why it's said that writing into .NET Application Configuration Files is a Bad Idea?

526


What is the difference between ienumerable and enumerator?

446


What is session management in c#?

526


What is the best dependency injection c#?

464


How do you inherit a class into other class in c#?

480


Is object an int c#?

520


Why do we use partial class in c#?

481