0
why we are use in return 0 in the statement?
4 Answers
+ 7
because a function must return a value
if u don't want to use return 0 statement then instead of declaring as "int main()" declare as "void main()"
+ 3
because with main we use int (integer ) and it have a return value and we don't want to return any value from it. so we wright 0 with return(return 0;)
+ 1
return 0 mean no value passing
0
return 0 is once execution over ...the value goes to the main function with 0 ....again execution and return back to 0