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.

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.