+ 1
About "return 0;"
Why always write "return 0;" in c++ code? Is that essential?
2 Answers
+ 8
Here's your answer dude :
https://www.sololearn.com/discuss/544817/?ref=app
+ 2
we dont always write return 0.
return 0 means the program work well.
return 1 means the program worked but with a problem.
return 2 means error!
but you can return any number that you want.