The goto statement is also known as the jump statement
because it is used for jumping from one statement to another statement. It is
also control the flow of execution of a program.
It is also known as
unconditional statement because there is no condition is required to execute
the goto statement.
The goto statement uses a label, it is a indicator which is
used for jumping to a particular location in a program. When a label is define
before the goto statement than some statements will be executed again and the
jumping is called backward jumping. When the label is defined after the goto
statement than some statements will be skipped and the jumping is called
forward jumping.
Sy:
goto lable_name;
No comments:
Post a Comment