GO TO

In C programming, the goto statement allows you to transfer control to a labeled statement within the same function. While the use of goto is generally discouraged because it can make the code less readable and more prone to errors, there are situations where it might be considered acceptable.

The general syntax of the goto statement is as follows:

goto label;

 

// ...

 

label:

    // statement(s)

Lab:

{

Statement;

}

Goto Lab;