+ 2
WhaT is the purpose of return 0 ??
7 Réponses
+ 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