Hello friends!!!!!

C goto statement

C LANGUAGE

10/18/20241 min read

The goto statements is known as jump statement in C. As the name suggests, goto is used to transfer the program control to a predefined label. The goto statement can be used to repeat some part of the code for a particular statement. It can also be used to break, the multiple loops which can't be done by using a single break statement. However, using goto is avoided in these days since it makes the program less readable and complecated.

Syntax:

label:

//some part of the code;

goto label;