0
What is the use of return 0?
2 Respuestas
+ 2
return 0 in the main means the program terminated without error.
0
Main is first of all a function which has to return a value. Therefore, return 0 simply makes you understand that the function works correctly.