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

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

2 Answers  


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

0 Answers   Appin, NIIT,


give me the defination of inheritance?

5 Answers   Infosys,


tell about sorted linked list

1 Answers  


write a program to convert a decimal number in to its equivalent binary number?

0 Answers  






Define stl.

0 Answers  


how to get the sum of two integers?

2 Answers  


please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

0 Answers  


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

0 Answers  


what is a template?

2 Answers   Amazon, BITS, IBS, Wipro,


how to overload << and >> operator in c++

3 Answers   Wipro,


Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

1 Answers   Sun Microsystems,


Categories