+ 2
WhaT is the purpose of return 0 ??
7 Answers
+ 14
yes it will...
+ 2
In C andĀ C++Ā programs the main functionĀ is of type int and therefore it shouldĀ returnĀ an integer value.Ā
+ 2
Yes the program will run because during compiling your code it will return 0 autmatically
+ 1
Frost???? will the program run without return 0??
+ 1
thnks
0
Actually if you have a method that isn't void (for example: int, double and etc) you must return a value, thereforeā at the latest statement you must put return 0, otherwise you get syntax error