+ 1
What is void main?
I know void means valueless but put together with main, it doesn't just make sense for me
2 odpowiedzi
+ 6
main is the method where every code starts
+ 2
main is a function. Every function would need a return type. Since main is the function that starts everything, it requires no return value. Thus the void. Hence the void main.