0

What is the use of return 0?

2nd Sep 2016, 12:52 PM
Rahul Kumar Ankush
Rahul Kumar Ankush - avatar
2 Antworten
+ 2
return 0 in the main means the program terminated without error.
2nd Sep 2016, 1:38 PM
Zen
Zen - avatar
0
Main is first of all a function which has to return a value. Therefore, return 0 simply makes you understand that the function works correctly.
2nd Sep 2016, 10:22 PM
Bless Darah Gah
Bless Darah Gah - avatar