0

Why return0 is used in c++

16th Apr 2018, 11:11 AM
Harry Singh
Harry Singh - avatar
2 Respostas
+ 2
return -1; or any other value which is not 0: Something went wrong. You can also ommit return 0; and it will be placed at the end of the main function automatically.
16th Apr 2018, 2:05 PM
Timon Paßlick
0
Return 0; inform computer that running of the program is completed correctly.
16th Apr 2018, 11:17 AM
Bartosz Pieszko
Bartosz Pieszko - avatar