- 1
what is the use of return 0?
4 Answers
+ 1
to tell compiler that program is executed successfully
+ 1
it tells the compiler that program is successfully
executed if we write return 1 in place of return 0 then compiler will think that there will be abnormal execution and it will again check the code if there is some mistake if not OS cannot understand
+ 1
no need of giving return 0 if u use int main() as main()
0
it tell the compiler that the program is executed without any error &successfully