Tag: function-prototypes
-
Are `int main()` and `int main(void)` equivalent prototypes in C23?
11 C23 introduced new semantics in function declarators: 6.7.6.3 Function declarators […] 13 For a function declarator without a parameter type list: the effect is as if it were declared with a parameter type list consisting of the keyword void. A function declarator provides a prototype for the function. This seems to imply that a function…