+ 4
What is the difference between main(), void main() and int main() in c
3 Respostas
+ 6
Another difference is, you know, the return value, in int main case usually it is code tu return 0, some developers use this as a error report system, returning many values depending on the case; void main does not need a return value, so here the return part isn' t needed, and main works similar to void main. hope it helped!
+ 4
int main() is coded as required by the standard and will be portable to any system. The others are non-standard and will not work everywhere.