+ 2

Why the name of main function can't be other than "main" ?

30th Jul 2017, 2:00 PM
Suraj Barfa
Suraj Barfa - avatar
1 Antwort
+ 9
Because main() is pre-declared in the compiler. We only write the definition for main().
30th Jul 2017, 2:08 PM
Hatsy Rei
Hatsy Rei - avatar