What is the function from where C++ programs begins their execution?
वो कौन सा फक्शन है जहाँ से C++ प्रोग्राम का निष्पादन शुरू करता है?
Select one:
a. PROGRAMO)
PROGRAMO
b. STARTO
STARTO
C. MAINO
MAINO
d. BEGINO
BEGINO
De
9
Answers
Answer:
The C++ as well as C program begins it's execution from Main()
Explanation:
C++ program has many parts in it :
1) It first starts with header files inorder to inform the compiler to include the required libraries but it won't start the execution
2) And then comes global declaration section where one can declare variables used in more than one function and even one can declare the functions used in the program here or can even make use of #define function
3) However, A compiler will always initiate it's execution from Main() function
Answer:
The correct answer will be option (C) Main()
Generally in a C++ programming
The header files are added to inform the compiler to include the required libraries but the execution is not started.
Then it will compile the global functions or variables which are used several times inside the program.
The compiler will always initiate it's execution from Main() function .