goto statement :
• The function of goto statement is to transfer the programs control unconditionally, where you want.
• It requires label to identify the place where to control will be transferred.
• It can be used, anywhere in the program.
• It is not associted with any loop.
• "goto" is a keyword.
• It is unconditional jump instruction.
• Example:
{
if(i<=10)
{ break;}
printf("%d",i);
i=i+1;
}
Good
ReplyDelete