-
Notifications
You must be signed in to change notification settings - Fork 708
main() function requirements
Wei, Jimmy T edited this page Mar 10, 2023
·
1 revision
- The main() function must return int
- The return values are 0 and -1
- 0: SUCCESS
- -1: FAILURE (any non-zero can be used)
- C++ Core Guideline
- Main function specifications
- The return values are 0 and -1
- The two forms allowed are:
- int main() { body }
- int main( int argc, char *argv[] ) { body }
- Home
- DPC++ what is it?
- Administration
- sample.json
- Sample Browser
- GitHub Steps for Contribution
- New Sample Submission
- Guidelines