C programming goto statement

In this tutorial, you will learn about c programming goto statement which is used to alter the flow of program execution.

C goto statement

In C programming, goto statement is used to alter the flow of execution of the program as we wish. Use of goto is no recommended as it is not a good programming practice though it might be handy in some situations.

structure of c programming goto statement

As shown in above structure of goto statement label is an identifier which specifies the place where the flow is to be jumped and it must be followed by colon.

Good Programming Practice

The label used in above structure must be followed by a colon and for good programming practice try avoiding the use of goto statement as much as you can.