Loading...
C++

Jumping Statements

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

  1. 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:
Leave a Reply

Your email address will not be published. Required fields are marked *