0

why, not writing ( return 0) ,doesn't affect the program?

#include <iostream> using namespace std; void printSomething(int x) { cout << x; } int main() { printSomething(42); }

21st Jan 2018, 2:39 AM
Purvank Bhiwgade
Purvank Bhiwgade - avatar
3 ответов
0
excluding return means the compiler will add it for you.
21st Jan 2018, 3:06 AM
shobhit
shobhit - avatar
- 2
g7m97.k.7gk777kk67yygy776g6776
21st Jan 2018, 3:33 AM
Fajarwahyu