Posts

Showing posts with the label Some Properties Of Command Line Arguments :

The Main Function, The Heart Of The Program

 Main Function In C++ Program : The Heart Of The Program. Here we are  discussed about the main function. Which are very important topic and we will also see about how we use main function with various method. How we use main function in C++ with arguments  and what's the benefits of the use of   main method in C++ First question is why  do you need a main function in C++ ? The main Function Declaration :   We don't declare the main function. The main function is inbuilt function into the specific language. In every C++ program we must write the program with the main function. If we write the program the compiler gives an error. Compiler gives this type of the error like  (Dynamic-link libraries and static libraries don't have a  main  function.) that's why we said that the main function is the heart of the every program. The main function is where your source code begin with the execution.  Before the execution of the source code ...