+ 1

What is the importance of return 0 in cop

4th May 2019, 7:30 AM
J. Sanjay
J. Sanjay - avatar
3 Respuestas
+ 3
J. Sanjay, you mean in cpp, right? 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". source: https://www.quora.com/Why-do-we-use-a-return-0-at-the-end-of-a-main-functionp
4th May 2019, 7:33 AM
Alessio Benvenuti
Alessio Benvenuti - avatar
+ 2
Thx
4th May 2019, 10:42 AM
J. Sanjay
J. Sanjay - avatar
+ 2
J. Sanjay, you're welcome!
4th May 2019, 10:49 AM
Alessio Benvenuti
Alessio Benvenuti - avatar