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

How is lazy loading achieved?

898


What is the syntax for calling an overloaded constructor within a constructor?

944


How does bitwise xor work?

872


What is thread in c#?

935


What do constructors do in c#?

923


What is string pool in c#?

972


What are jump statements in c#?

940


What is the xml document structure?

917


What is the correct way of declaring an xml namespace?

820


For methods inside the interface why can’t you specify the accessibility modifier?

937


What are the types of constructors?

897


How many variables do you need?

912


Can multiple inheritance implemented in c# ?

894


Explain how do you directly call a native function exported from a dll?

897


Is c# scripting language?

874