Labeled Statements

To transfer program control directly to a given statement, the statement must be labeled. See Using Labels with the goto Statement and Using Labels in the case Statement.

Syntax

labeled-statement:

identifier : statement
case constant-expression : statement
default : statement