This topic has not yet been rated - Rate this topic

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.

There are three types of labeled statements. All use a colon to separate some type of label from the statement. The case and default labels are specific to case (or switch) statements:

identifier : statement
case constant-expression : statement
default : statement
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.