Function Main().

Q32. Why is function main() special? What would happen if main() is not present in the program?

Ans. Every C++ program must have a function named main(). The program execution begins at main(). So, if function main() is missing then there shall be no execution of the statements.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: