+ 1
Why we use return 0?
Return 0 in c
2 Answers
+ 2
Thanks
+ 1
Not only C/C++ standard, but also ASM standard. Returning any number different from 0 represents some kind of errors that the OS' event logger may treat as an error, so it's a very good practice to guarantee that everything goes alright.
When ending with errors, you may use another return values.