Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 327 Bytes

main_function.md

File metadata and controls

14 lines (12 loc) · 327 Bytes

#Main

int main()
{
  /* your C code here */
  return 0;
}

The 'main' function is what gets run when you execute your program. It counts as running without error if it returns 0, and if anything else is returned then an error is raised.

This is how you, as the programmer, indicate whether the program is successful.