0
Returning 0
Why do we need to return 0? I don’t get it!
1 Réponse
+ 5
In C and C++ programs the main function is of type int and therefore it should return an integer value. The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine".
https://www.sololearn.com/discuss/45926/?ref=app
https://www.sololearn.com/discuss/797593/?ref=app
https://www.sololearn.com/discuss/384460/?ref=app
https://www.sololearn.com/discuss/220394/?ref=app