0
Why there is 'int' before 'main' function? Int main ()
in tutorial for ex. it works without int
6 Respuestas
+ 2
basically int main is used to return some integer most of the time 0
0
because it will return, traditionally at least, 0 when it finishes execution which is am integer. now you can do void main but the is just incorrect and not standard. there's even some compilers I believe that reject that so it's best to use int main
- 1
are Include & IosStream is necessary to write in c++ ?
- 1
We are classifying main as an integer and any value it gives comes out to be a integer
- 1
Yes, they are necessary because those are the library to code is referring.
- 1
at last we are returning 0 that means okk u are satisfied and anything other than that means opposite,if u dont write that retutn 0 than also it will execute,but when u are using functions with or without return value than return 0 plays an important role in stopping the process...