M
mescaline
1. Why does C++ require the int in:
int main(){...}
(is there a special reason for int, why not void,etc...?)
2. What purpose does the return 0; serve at the end of the main
program:
(when the program is run successfully and the " return 0; " statement
is encountered, what exactly happens -- where is the 0 returned?)
thanks
int main(){...}
(is there a special reason for int, why not void,etc...?)
2. What purpose does the return 0; serve at the end of the main
program:
(when the program is run successfully and the " return 0; " statement
is encountered, what exactly happens -- where is the 0 returned?)
thanks