logoalt Hacker News

mitxelatoday at 12:50 AM1 replyview on HN

In C++ you're not allowed to call main yourself, so that the compiler can call the global constructors at the start of main.


Replies

pjmlptoday at 6:16 AM

Which also exist as C extensions, in some compilers.