0
If return returned a value like 0. What's the benefit of this ?
Return 0 benefit
4 Answers
+ 1
Can you please specify the referred language on the question's Relevant Tags? you are following multiple courses it's hard to deduct which language this question refers to.
(Edit)
Have you tried searching for this topic? I recall many people had asked something similar before.
+ 1
Returning 0 is typically perform during functional programming, where 0 means "success", look at it like fault flags or error codes and anything other than 0 is some sort of fault or error
0
Language c++.
0
n3v375 but I created a program in c++ and returned a value that was not 0. And it ran successfully without any errors.