0
how many main() function in program can be written in program?
main()
2 Antworten
+ 3
I imagine due to the scoping operator existing you could have one for every class. That said, it would be quite odd to have more than the starting point called main.
+ 3
You can only use one main function in a class as it is the starting point of program execution.