+ 1
Main's suestion
hello friends can someone answer me ? is it possible to have more than 1 main in C or java?
2 Réponses
+ 2
However, only the function with the correct parameters will be invoked to start the execution.
0
C does not allow function overloading. Languages that do like Java can. This program runs:
public class Program {
public static int main() {
return 5;
}
public static void main(String[] args) {
System.out.println(main());
}
}