0

What if we do not include return 0;

26th Aug 2019, 6:11 AM
chaitanya kumar
chaitanya kumar - avatar
4 Respostas
+ 3
edit ah this is C make sure you explain what language you are working in.
26th Aug 2019, 6:12 AM
Brave Tea
Brave Tea - avatar
+ 3
When you (the coder) doesn't explicitly write any `return` statement (for main function), then the compiler assumes a default return value and automatically inserts the `return 0;` line for you : )
26th Aug 2019, 6:31 AM
Ipang
0
Bt in the basic program of "hello world " it worked
26th Aug 2019, 6:14 AM
chaitanya kumar
chaitanya kumar - avatar
26th Aug 2019, 6:16 AM
chaitanya kumar
chaitanya kumar - avatar