3 ms·
That answer does mention that GCC permits it as an extension. If the author uses GCC, maybe that’s where the confusion comes from?
by colejohnson66 6y ago
That answer does mention that GCC permits it as an extension. If the author uses GCC, maybe that’s where the confusion comes from?
- jwilk 6y agoBut then he also writes that "sizeof(void) is illegal". OTOH, GCC documentation says "sizeof is also allowed on void and on function types, and returns 1".