+ 2

Why main function is special in c++ ?

main function

28th Jul 2017, 11:54 AM
Mayur Maskar
Mayur Maskar - avatar
5 Antworten
+ 5
Main is the entry point. Without main program won't run
28th Jul 2017, 2:18 PM
Shamanth Rai
Shamanth Rai - avatar
+ 4
infact many languages needa a start point. even your computer!!! when you press your on/off button your bios is telling where is your hard disk where is the monitör even keyboard and mouse. so there should be a main function telling where to go first other wise your program will never start doing something
28th Jul 2017, 12:09 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 3
because it is entry point of your program.
28th Jul 2017, 12:04 PM
_myVar
_myVar - avatar
+ 2
thank you guys i understand
29th Jul 2017, 2:18 AM
Mayur Maskar
Mayur Maskar - avatar