Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is work of continue statement in C#?

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


Please Help Members By Posting Answers For Below Questions

List some of the basic string operation?

922


Why is c# a good programming language?

999


What is semaphore in c#?

947


Which class comes after the SortedList class?

972


Are cao stateful in nature?

911


Is lazy thread safe c#?

878


Are c# generics the same as c++ templates?

931


Why do we use Design Pattern in C#?

1037


How many types of constructors are there?

891


What is the use of expression tree in c#?

872


What is the difference between iqueryable and ienumerable?

970


Give an example to show for hiding base class methods?

857


What is private constructor c#?

919


What is cls, cts and clr in net?

912


Why should you override the tostring() method?

1047