Can we write the main function twice ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we write the main function twice ?

28th Aug 2018, 4:37 AM
Kirti
Kirti - avatar
4 Answers
+ 5
Which language?
28th Aug 2018, 4:40 AM
hi user, #Have_Hope
hi user, #Have_Hope - avatar
+ 5
Kirti then how will your compiler understand from where your program is starting..?? which main() will be the entry point??? answer is NO
28th Aug 2018, 5:16 AM
Keerttik Titan
Keerttik Titan - avatar
+ 1
thanks 👍
28th Aug 2018, 5:21 AM
Kirti
Kirti - avatar
0
c++
28th Aug 2018, 4:41 AM
Kirti
Kirti - avatar