- 1
How int main () and void main() works
2 Respuestas
+ 2
The difference is on what they are able to return, void main() shouldn't return anything, but int main() should return an integer.
+ 1
They are the entry point function of a c or c++ program.
They accept two parameters : number of arguments and a array of string representing the command-line arguments.