goto
goto label;
label:
//code
Upon execution, a goto statement causes the program to continue on the line following the label statement, so long as the label is within the same scope as the goto statement. (You cannot, for instance, jump into the middle of a function from a different function by using goto.) The use of goto is frowned on in most instances because it is conducive to spaghetti code; however, it can be useful for escaping from multiple embedded
loops or
cleanly handling errors in one place.