0
What is difference between void main and main?
3 odpowiedzi
+ 3
main is just name of the function that gets executed at first. Void means it doesn't return anything to the OS. We mostly return 0 in main because it gives message to the OS that the program ran successfully and there was no problem in its execution.
+ 2
nothing
- 1
void main is mostly use in c ;
main is mostly use in c++;
may vise versa usage will make compile error