+ 3
INT MAIN
what are the advantage of using int main???
5 Answers
+ 6
just int main() will work everywhere, while void main() will not..
+ 4
so basically the return value from the main() function is used by the runtime library as the exit code for the process......right?
+ 2
void doesn't returns any type while int or anything else does.
+ 1
The int part of int main() is good, because it will work universally, and gives you the ability to terminate your program prematurely.
0
you u can use it ,when u need Ur main function to return some int values