Why main function is special in C++ ?

+1 vote
4,711 views
asked May 29, 2013 in C++ by kalpana (3,995 points)

Why main function is special in C++ ?

1 Answer

0 votes
answered May 30, 2013 by admin (8,115 points)

Whenever a C++ program is executed, execution of the program starts and ends at main(). The main is the driver function of the program. If it is not present in a program, no execution can take place.

commented Jun 17 by anonymous
But a Java program works without a main function
commented Jun 17 by admin (8,115 points)
I totally agree but the question why main special in c++
commented Jun 25 by anonymous
this question is meant for c,c++
...