you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 3 years ago (1 child)

Yep, main returns an int in C++. It’s for the return code - if it returns 0, that indicates the program ran ok, if it returns anything else some sort of error occurred.

  • source
  • parent
  • hideshow 1 child comment