0

why we are use in return 0 in the statement?

30th Sep 2016, 7:47 AM
ALEXANDAR
ALEXANDAR - avatar
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()"
4th Oct 2016, 5:52 PM
K.S. Chaithanya
K.S. Chaithanya - avatar
+ 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;)
30th Sep 2016, 8:29 AM
Prasanjit Singh
Prasanjit Singh - avatar
+ 1
return 0 mean no value passing
30th Sep 2016, 8:11 AM
Rishav Gupta
Rishav Gupta - avatar
0
return 0 is once execution over ...the value goes to the main function with 0 ....again execution and return back to 0
15th Oct 2016, 5:48 AM
Pradeep C
Pradeep C - avatar