goto statement?
Demonstrate the typical use of goto statement?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 12, 2013, 5:06 AM
http://www.c-sharpcorner.com/UploadFile/b942f9/acceptable-uses-for-the-goto-statement-in-C-Sharp/
Jignesh TrivediPosted Nov 12, 2013, 1:28 AM
GOTO Statement transfers the program control directly to the labeled statement.
GOTO statement is also useful to get out of deeply nested loops.
Example
for(int i=0; i<=10;i++)
{
if(i==5)
{
goto forloopbreak;
}
}
forloopbreak:
Console.WriteLine("End");
hope this will help you.