+ 1
what if we put return 1 in main function eg int main () { ⢠⢠⢠⢠⢠⢠⢠⢠return 1; }
6 Answers
+ 2
dude...don't ask soo small things...try it out yourself...
0
That returns 1 to the operating system indicating that the program had an error (as every non 0 value).
0
you can put anything for an error
0
Can you? As far as I know the convention to signal an error via return code is to return a non-zero value. The basic Linux tools actually have different return code which signal different errors.
0
it returns value of main
0
it will return error of runtime (if any)!!!