Aggregate Types (Using the GNU Compiler Collection (GCC)) (original) (raw)
Next: Named Address Spaces, Previous: Additional Numeric Types, Up: Extensions to the C Language Family [Contents][Index]
6.2 Array, Union, and Struct Extensions ¶
GCC supports several extensions relating to array, union, and struct types, including extensions for aggregate initializers for objects of these types.
- Arrays of Variable Length
- Arrays of Length Zero
- Structures with No Members
- Unions with Flexible Array Members
- Structures with only Flexible Array Members
- Unnamed Structure and Union Fields
- Cast to a Union Type
- Non-Lvalue Arrays May Have Subscripts
- Non-Constant Initializers
- Compound Literals
- Designated Initializers