Skip to main content

All Questions

18 votes
5 answers
3k views

Are int main() and int main(void) equivalent prototypes in C23?

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 ...
chqrlie's user avatar
  • 142k
0 votes
2 answers
474 views

Regarding mainstream compilers and int main(){} in C23

My program: int main(){} In upcoming C23, non-prototype and "K&R style" functions are removed. I realize that C23 is not yet formally released, but the current behavior of gcc and clang ...
Lundin's user avatar
  • 208k