Skip to content

Commit 047ac1b

Browse files
author
mikeblome
committed
fixed wording
1 parent afb5cbf commit 047ac1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/cpp/main-function-and-command-line-args.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.assetid: c6568ee6-40ab-4ae8-aa44-c99e232f64ac
66
---
77
# main function and command-line arguments
88

9-
All C++ programs must have a `main` function. If you try to compile a C++ *.exe* project without a main function, the compiler will raise an error. Dynamic-link libraries and static libraries don't have a `main` function. Although `main` is the starting point of execution, but before a program enters the `main` function, all static class members without explicit initializers are set to zero. In Microsoft C++, global static objects are also initialized before entry to `main`. Several restrictions apply to the `main` function that do not apply to any other C++ functions. The `main` function:
9+
All C++ programs must have a `main` function. If you try to compile a C++ *.exe* project without a main function, the compiler will raise an error. (Dynamic-link libraries and static libraries don't have a `main` function.) The `main` function is where your source code begins execution, but before a program enters the `main` function, all static class members without explicit initializers are set to zero. In Microsoft C++, global static objects are also initialized before entry to `main`. Several restrictions apply to the `main` function that do not apply to any other C++ functions. The `main` function:
1010

1111
- Cannot be overloaded (see [Function Overloading](function-overloading.md)).
1212
- Cannot be declared as **inline**.

0 commit comments

Comments
 (0)