- 2

Why we use return 0; at the bottom of c program.

17th Jan 2018, 6:35 AM
Pawan sharma
Pawan sharma - avatar
2 Answers
+ 8
It is because you have declared the main function as: int main(){ //do code //note that the return value must be an integer //hence you must return an integer, anything can return 0; return 1; return 2184304; //all 3 above are valid}
17th Jan 2018, 6:49 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
17th Jan 2018, 7:49 AM
MR Programmer
MR Programmer - avatar