Flexible Array Members alone in Structures (Using the GNU Compiler Collection (GCC)) (original) (raw)
Next: Unnamed Structure and Union Fields, Previous: Unions with Flexible Array Members, Up: Array, Union, and Struct Extensions [Contents][Index]
6.2.5 Structures with only Flexible Array Members ¶
GCC permits a C99 flexible array member (FAM) to be alone in a structure:
struct only_fam { int b[]; };
The size of such a structure is zero.