This documentation is archived and is not being maintained.

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.

Grammar

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

See Also

Overview of C++ Statements | case | default

Show: