0
Why do we use return 0; in C++,Can we put integer 1 in return?
Please help me
2 Answers
+ 5
Repeated question
Always use search bar before posting any question.
here is short summary đ
return value of main() is used as exit code of a program and exit code 0 means that program ended without any errors.
Here are some similar threads đ
https://www.sololearn.com/discuss/797593/?ref=app
https://www.sololearn.com/discuss/239589/?ref=app
https://www.sololearn.com/discuss/352402/?ref=app
https://www.sololearn.com/discuss/2053622/?ref=app
https://www.sololearn.com/discuss/355420/?ref=app
https://www.sololearn.com/discuss/220394/?ref=app
https://www.sololearn.com/discuss/1867350/?ref=app