The goto statement causes the program to
jump to the line in the code that starts with the label identified
in the goto statement, skipping any statements
between the goto statement and the label.
Table 1-12: goto statement
Format
Meaning
if (condition)
{
do this;
if (another condition)
goto Label1;
do that;
}
Label1:
do these commands;
If this goto statement
is executed, then the program skips the “do
that” statement and continues program execution
at the “do these commands” statement.