+ 3
Why do we need to write "return 0" when code runs even without writing "return 0" ?
4 Respostas
+ 9
we use return in int main for exit status of program. return 0 means exit staus is zero ie our programs run successfully without error.
+ 2
in what sense ? @dghi dghi
+ 1
its simple answer is if you use int as function return type then it should have to return a value whether it is 0 also if you dont want this simply use void.