cppforever.com

Why main() is mandatory in C++ programs

Every standalone C++ program must contain a function named main.

Exceptions: