0
Why not "return 0 " is placed after " int main(){......}" at end of program ... than placing inside "int main"
4 Réponses
+ 2
int main() is the program, anything outside of its scope isn't used. The purpose of return 0 is only applicable to main, since it tells the computer the program terminated normally.
0
a function's scope is contained inside the curly brackets {}, anything outside that scope is not a part of the function
0
int main () is variable because when we write a program and compile it and he is done
- 1
can do {} is was a body of the program.. return 0 was end of the process