A.9.1 Labeled Statements

Statements may carry label prefixes.

A label consisting of an identifier declares the identifier. The only use of an identifier label is as a target of goto. The scope of the identifier is the current function. Because labels have their own name space, they do not interfere with other identifiers and cannot be redeclared. See Par.A.11.1.

Case labels and default labels are used with the switch statement (Par.A.9.4). The constant expression of case must have integral type.

Labels themselves do not alter the flow of control.

TCPL/A.09.1_Labeled_Statements (2008-02-23 15:36:57由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.