What is the use of "return 0" and what effects does it gives in the total output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of "return 0" and what effects does it gives in the total output.

12th Apr 2018, 12:56 PM
Sam
4 Answers
+ 1
If you're talking about the main function(int main),It's optional(no effect) ,something that c++ inherited from c.
12th Apr 2018, 1:04 PM
Hallox
Hallox - avatar
0
12th Apr 2018, 1:34 PM
cyk
cyk - avatar
0
https://code.sololearn.com/cN0uCyB2LTa9/?ref=app https://code.sololearn.com/chHAph306Ayh/?ref=app
12th Apr 2018, 1:46 PM
Alex
Alex - avatar