Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The latest version of this topic can be found at main Function Restrictions.
Several restrictions apply to the main function that do not apply to any other C++ functions. The main function:
Cannot be overloaded (see Overloading).
Cannot be declared as inline.
Cannot be declared as static.
Cannot have its address taken.
Cannot be called.