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

A.9.3 Compound Statement

So that several statements can be used where one is expected, the compound statement (also called block) is provided. The body of a function definition is a compound statement.

  • compound-statement:
    • { declaration-listopt statement-listopt }
    declaration-list:
    • declaration declaration-list declaration
    statement-list:
    • statement statement-list statement

If an identifier in the declaration-list was in scope outside the block, the outer declaration is suspended within the block (see Par.A.11.1), after which it resumes its force. An identifier may be declared only once in the same block. These rules apply to identifiers in the same name space (Par.A.11); identifiers in different name spaces are treated as distinct.

Initialization of automatic objects is performed each time the block is entered at the top, and proceeds in the order of the declarators. If a jump into the block is executed, these initializations are not performed. Initialization of static objects are performed only once, before the program begins execution.

TCPL/A.09.3_Compound_Statement (2008-02-23 15:37:05由localhost编辑)

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