FunctionC mainreturns int ... that int goes into the executable (the parent process, if you do) as an exit status code.
In particular, in most operating systems, exit code 0 means a normal run (no real errors), and non-zero means that a problem has occurred and the program should exit abnormally.
source
share