0

Why do we use return 0; in C++,Can we put integer 1 in return?

Please help me

12th Aug 2020, 1:43 AM
Saransh
Saransh - avatar
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
12th Aug 2020, 1:49 AM
Arsenic
Arsenic - avatar