Wiki Markup |
---|
Section 6.5.2.5 of the ISO/IEC 9899:1999 (C99) standard defines a compound literal as \[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\]: |
A postfix expression that consists of a parenthesized type name followed by a brace-enclosed list of initializers ... The value of a compound literal is that of an unnamed object initiated by the initializer list
...
This guideline is a specific instance of guideline DCL30-C. Declare objects with appropriate storage durations.
Noncompliant Code Example
...