Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Humans should think of sizeof() as a function, says Linus Torvalds. Parent comment
The problem with sizeof is that is should be able to accept a type as an argument. No function in C can do that, according to the standard C grammar.
Somewhat similarly, the standard va_arg is a macro, not a function, also because it accepts a type.
There are no comments on this comment yet.
The problem with sizeof is that is should be able to accept a type as an argument. No function in C can do that, according to the standard C grammar.
Somewhat similarly, the standard va_arg is a macro, not a function, also because it accepts a type.