0
What is the purpose of return 0 at the end?
5 Answers
+ 12
The function is something like :
int main() {}
This means it must return and integer... (0 or any other numeric value). The code fails if no int is returned....
0
return 0 = Succesfull
0
okay thanks :)
0
if you use "return" with any number other than 0, it will send the program with an error. even if it works just fine. it will recognize that its errored.
0
but doesn't the code do just fine even without return function. I'm not sure why we use it though. it's like blowing on a car to make it go faster, it'll do just fine.