Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

main Function Restrictions

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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.

main: Program Startup

Show: