Can the main function be overloaded ?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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