Can the main function be overloaded ?? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Can the main function be overloaded ??

If Yes!!! How many languages support this ??

12th Aug 2019, 4:33 PM
Chiranth H B
Chiranth H B - avatar
1 Respuesta
+ 1
Yes. All languages that support function overloading should support this. I showed it in Java here: https://code.sololearn.com/cMJttGO8jL75 You just need to code different parameters in your second main.
14th Aug 2019, 4:40 AM
John Wells
John Wells - avatar