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

What is difference between an Structure and Class?

1124


What is the difference between proc. Sent by val and by sub?

995


What is deferred execution?

896


Are string objects mutable or immutable?

936


Explain attributes in c#?

841


Can a class have more than 1 destructor?

1030


Is it possible to inherit multiple interfaces?

1013


What is a predicate in c#?

926


What are Memory foot print of an exe?

1024


Define delay signing?

934


What are methods c#?

888


Distinguish between continue and break statement?

1098


What is the difference between system.string and system.text.stringbuilder classes?

1010


Is var a data type?

945


Can the accessibility of a type member be greater than the accessibility of its containing type?

946