0

Why do we have to mention 'return 0' in c++ @ the end of main function....what if we return other values...

19th Feb 2017, 3:15 PM
THEJAS.P
THEJAS.P - avatar
2 Respuestas
+ 1
Programs are supposed to return 0 in order to let the OS know there were no errors. Returning other values are meant to signal errors.
19th Feb 2017, 3:22 PM
Sebastian Grigor
Sebastian Grigor - avatar
0
but returning other values is also giving me wid right output....<-_->
19th Feb 2017, 3:25 PM
THEJAS.P
THEJAS.P - avatar