+ 3

Can we change the name of main function to any other name ..like start() ,begin() ? Is it poosible ?

15th Jun 2017, 2:10 AM
Master Gaurav
7 odpowiedzi
+ 5
you would have to write an equivalent code to the method because it a predefined method
15th Jun 2017, 2:21 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 2
How about this? #define start() main() start() //Will be replaced by main after preprocessing... { //Code Here... }
15th Jun 2017, 5:24 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 2
@Martin Taylor Mine is just a cheap trick to make both the user and the compiler satisfied. 😅 Its tried and tested...
16th Jun 2017, 4:08 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
If your compiler supports it, you can
15th Jun 2017, 6:24 AM
aklex
aklex - avatar