Hacker News new | ask | show | jobs
by colejohnson66 2102 days 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?
1 comments

But 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".