+ 1

Main's suestion

hello friends can someone answer me ? is it possible to have more than 1 main in C or java?

17th Oct 2018, 6:01 AM
Hamza Abdelkerim Cherif
Hamza Abdelkerim Cherif - avatar
2 Réponses
+ 2
However, only the function with the correct parameters will be invoked to start the execution.
17th Oct 2018, 4:33 PM
John Wells
John Wells - avatar
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()); } }
17th Oct 2018, 4:31 PM
John Wells
John Wells - avatar