+ 4

What does it mean the "return 0"

Cout << "hellow word!"; Cout << "i love this"; return 0;

11th Jan 2021, 9:14 PM
Vùrñy Mk
Vùrñy Mk - avatar
5 Answers
+ 3
The value your program returns to the operating system can indicate if it ran successfully or if execution failed. A return value of 0 indicates success and any non-zero value indicates failure. There are only two truly portable return values: EXIT_SUCCESS (i.e 0) and EXIT_FAILURE. If you want to return a value other than these you have to check what range of error codes your platform supports.
12th Jan 2021, 8:47 PM
Mike A
Mike A - avatar
+ 1
Thanx so much..
11th Jan 2021, 9:38 PM
Vùrñy Mk
Vùrñy Mk - avatar
+ 1
Jegix thank you..
12th Jan 2021, 8:52 PM
Vùrñy Mk
Vùrñy Mk - avatar