+ 2
Why we use return =0 in the end ?
Is there any specification? Is it mandatory?
3 Respuestas
+ 6
This is status code which means that the code executed successfully.
+ 2
the return statement is used to terminate a function. The main function should return value 0, it means EXIT_SUCCESS, and otherwise returns -1, meaning EXIT_FAILIURE
+ 2
It is not really mendatory
If even if you dont put return 0, still code will execute sucesfully unless you dont make any error in the code.