Table of Contents
Back Button
Back to Chapter
C++ Setting Up
C++ Introduction
No items found.
C++ Basics
No items found.
C++ Control Statements
No items found.
C++ Logical Operators
No items found.
C++ Procedural Programming
No items found.
C++ Structural Programming
No items found.
C++ Implementation of OOPS
No items found.
C++ Arrays and Vectors
No items found.
C++ Error Handling
No items found.
C++ File Handling
No items found.

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.

#include using namespace std; void anotherfunction()//function with void return type { cout<<"another function"<
Output: here's where your program starts another function here's where your program ends!!! It starts and ends in main!!!!

This program demonstrates how program execution starts and ends in main function.

Ask queries
Contact Us on Whatsapp
Hi, How Can We Help You?