+ 2
What's the difference between 'main ()' and 'void main ()' and how does it affect the program in C?
2 odpowiedzi
+ 3
The default return type of a function in C is int so main() is int main() which returns an integer value and void main just doesnt return anything. It can be usefull when you are recursing through main().
0
if there is no return type mentioned with main() than default is int.