版本1和2间的区别
于2007-07-19 01:47:05修订的的版本1
大小: 701
编辑: czk
备注:
于2008-02-23 15:36:57修订的的版本2
大小: 701
编辑: localhost
备注: converted to 1.6 markup
未发现区别!

A.9.1 Labeled Statements

Statements may carry label prefixes.

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

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.