A
Aggro
Hi,
I would need to return at least two different values from my program
depending on the results of it for shell script to identify which the
result was, but I would also like the program to follow the C++ standards.
I have seen posts that claim that C++ program can return only 0,
EXIT_SUCCESS or EXIT_FAILURE. Is this is true, or can I just return 0, 1
or even 10234 from my program? Or is only 0 allowed?
What part of the C++ standard says so?
TIA
I would need to return at least two different values from my program
depending on the results of it for shell script to identify which the
result was, but I would also like the program to follow the C++ standards.
I have seen posts that claim that C++ program can return only 0,
EXIT_SUCCESS or EXIT_FAILURE. Is this is true, or can I just return 0, 1
or even 10234 from my program? Or is only 0 allowed?
What part of the C++ standard says so?
TIA