RAD Studio
ContentsIndex
PreviousUpNext
Labeled Statements

A statement can be labeled in two ways:

  • label-identifier : statement
* The label identifier serves as a target for the unconditional goto statement. Label identifiers have their own name space and have function scope. In C++ you can label both declaration and non-declaration statements.
  • case constant-expression : statement
* default : statement 

Case and default labeled statements are used only in conjunction with switch statements.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!