|
|
|
6.7.8 Initialization Syntax 1 initializer: assignment-expression { initializer-list } { initializer-list , } initializer-list: designation opt initializer initializer-list , designation opt initializer designation: designator-list = designator-list: designator designator: [ constant-expression ] . identifier Constraints 2 No initializer shall attempt to provide a value for an object not contained within the entity 3 The type of the entity to be initialized shall be an array of unknown size or an object type 4 All the expressions in an initializer for an object that has static storage duration shall be 5 If the declaration of an identifier has block scope, and the identifier has external or 6 If a designator has the form [ constant-expression ] then the current object (defined below) shall have array type and the expression shall be 7 If a designator has the form . identifier then the current object (defined below) shall have structure or union type and the 125 |