why does the execution of a c++ program start with main()???

Answers were Sorted based on User's Feedback



why does the execution of a c++ program start with main()???..

Answer / anupam

All the ans given above are right. But I think the main
funciton is a userdefined function whose name is fix known
by the compiler. When compiler star compiling the program
then it first read the address from the main function
adddress. So we can say that it is the starting point of
every program from which it execute.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More STL Interview Questions

what is the difference between thread and process

1 Answers   Infosys,


what is an algorithm in terms of STL?

1 Answers   Lucent, Wipro,


Diffrernce Between Overloading and Overriding?

2 Answers   Wipro,


why does the execution of a c++ program start with main()???

11 Answers  


I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?

2 Answers  






How is stl different from c++ standard library?

0 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

0 Answers   GE, Infosys, Microsoft, NIM,


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

0 Answers  


Name the different types of stl containers.

0 Answers  


how to swap two numbers in a linked list without exchanging the data but only the links?

3 Answers   Wipro,


Waht is inheritance

6 Answers  


what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?

6 Answers  


Categories