+ 1
What is the difference between int main() and main() ?
3 Réponses
+ 15
if you are working with C, main() works but is confusing, in C the main function always returns an int, to specify exit status, so the correct syntax is int main(), but if you do not bother to set the exit status then main() is enough, but I don't know the good C books always use into main()
+ 4
both are same ...... both return the integer type value ....int main() .....here int says all ....and in main() ...you should know that by default main() returns integer type value ....
+ 2
It's all about standard and good habits ^^It is recommended to write int main() with return 0; at the end.