0

What does it mean by 'a non-zero value signals abnormal termination'?

9th Feb 2019, 2:38 PM
Chanchal Sharma
Chanchal Sharma - avatar
2 Answers
+ 2
int main() is supposed to return 0. If it doesn't, it means that something went wrong
9th Feb 2019, 2:43 PM
Anna
Anna - avatar
+ 1
You might want to check this link for the conventional usage of non-zero return values for main. http://tldp.org/LDP/abs/html/exitcodes.html
9th Feb 2019, 2:45 PM
Hatsy Rei
Hatsy Rei - avatar