COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
this function is the entry point of every program
A
MAIN()
B
PRINTF()
C
#INLCUDE <STDIO.H>
D
#INCLUDE <CONIO.H>
Explanation: 

Detailed explanation-1: -The main function ( main() ) is the entry point to a C/C++ program and is called when the application starts executing. Calls to other functions, for example from the main function, provide entry points to function code. Program control is transferred to the called function.

Detailed explanation-2: -main() is the known entry point when the run-time code is ready to start executing your program.

Detailed explanation-3: -An entry point is the point at which execution of program starts. In C++, it is the main() function.

Detailed explanation-4: -The main function in C is called by the Operating System itself at the run time, not at the compile time. The main function in C marks the beginning of any program in C. The main function in C is the first function to be executed by the Operating System.

There is 1 question to complete.