Main function in C++


The C++ compiler starts reading the program from which line the main function is started. “main () { }” (written like this). That’s why it is called the main function and we write our complete program in main function. Also in Object Oriented Programming we declare our Objects of Classes in main function.



main function c++


Conclusion

In this blog we studied about a Main function of C++. I hope you have understand the concept of main function of a C++ language. Allah Hafiz.


Tags: Main Function in C++ | main() function | int main () | main function c++