3 ms·
> Technically this is not valid under strict C, but it's also incredibly common. char data[] is valid C in recent versions if it is the last entry of a struct.
by heywhatupboys 3y ago
> Technically this is not valid under strict C, but it's also incredibly common.
char data[] is valid C in recent versions if it is the last entry of a struct.
- layer8 3y agoTo elaborate, this is called "flexible array member" and was introduced with C99.