C++ Main Function
main() function is the entry point of any C++ program. It is the point at which execution of program is started. When a C++ program is executed, the execution control goes directly to the main() function.
This program demonstrates how program execution starts and ends in main function.