Files
awesome-cheatsheets/languages/C.md
Ajay T Shaju ca5e153c6d initial
2023-09-18 21:10:32 +05:30

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 value of the program.
  • As a rule of thumb, value 0 means success while non-zero means an error conditions.