If you write a block of code and you don't add 'return 0;', is it an error? If no, why isn't it? If no, why should it be added? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If you write a block of code and you don't add 'return 0;', is it an error? If no, why isn't it? If no, why should it be added?

24th Aug 2017, 5:21 PM
JoJo
JoJo - avatar
2 Answers
0
programs should return an integer value, andd they may be collected by the system (in windows (batch) it is the %errorlevel% variable though)
24th Aug 2017, 8:51 PM
Andrés04_ve
Andrés04_ve - avatar
0
OK. Thanks. But I feel my questions weren't directly answered
24th Aug 2017, 8:55 PM
JoJo
JoJo - avatar