+ 4
Can We Overload Main Function
In C, C++& Java
2 odpowiedzi
+ 11
For C++, it is not possible.
- 3.6.1p2
An implementation shall not predefine the main function. This function shall not be overloaded.
For Java, it is possible, but with exceptions.
https://stackoverflow.com/questions/3759315/can-we-overload-the-main-method-in-java
For C, no form of overloading is supported apart from original built-in functions, e.g. printf()