The Goto Statement

The goto transfer the program controls directly to a labeled statement. A common use of goto is to transfer control to a specific switch-case label or the default label in a switch statement. The goto statement is also useful to get out of deeply nested loops.

No comments:

Post a Comment