mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 06:38:02 -08:00
364 B
364 B
main() Function
- The main() function is the starting point of the program:
int main (int argc, char *argv[]) - The return type of the main() function is an integer (type int) and it is known as the
return valueof the program. - As a rule of thumb,
value 0 means success while non-zero means an error conditions.