C++ language provides us multiple statement through which we can transfer the control anywhere in the program .
There are basically 3 jumping statements:
1. goto
2. continue
3. break
- goto:
In C++ programming, goto statement is used for altering the normal sequence of program execution by transferring control to some other part of the program.
Syntax:
goto label;
……………..
……………..
……………..
label:
statements;
……………….
Example: