0

why main is source special or significance of main function

27th Jun 2016, 5:27 PM
keshav
4 Réponses
0
If I understand correctly, you are asking why the main function is important, and it is because every single c++ program starts from it.
27th Jun 2016, 5:31 PM
Garme Kain
Garme Kain - avatar
0
any program most have main function and if it doesn't have it won't be start
27th Jun 2016, 5:44 PM
ali
0
main() or datatype main (), tells that the program starts from here i.e from main ()
28th Jun 2016, 11:16 AM
Jay Thakur
Jay Thakur - avatar
0
@jay: main() is not a datatype. it is a function. the datatype of main function is int if it returns an int or void if it doesnt return anything
28th Jun 2016, 11:34 AM
Garme Kain
Garme Kain - avatar