Is It necessary to use main function in C++.
In C++ whenever Program is written and when it gets executed , only the main() part is executed .
This is becuase the execution starts and ends with main().
The mian() is the driver function of the program written.
If the main() part is not there in program then no execution will take place .
No comments:
Post a Comment