0

If return returned a value like 0. What's the benefit of this ?

Return 0 benefit

26th Jul 2019, 6:14 AM
The unknown 321
The unknown 321 - avatar
4 odpowiedzi
+ 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.
26th Jul 2019, 8:07 AM
Ipang
+ 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
26th Jul 2019, 10:52 AM
Steven M
Steven M - avatar
0
Language c++.
26th Jul 2019, 8:56 AM
The unknown 321
The unknown 321 - avatar
0
n3v375 but I created a program in c++ and returned a value that was not 0. And it ran successfully without any errors.
26th Jul 2019, 3:36 PM
The unknown 321
The unknown 321 - avatar