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

5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3

1 Answers  


What is stl stand for?

0 Answers  


Can we use stl in coding interviews?

0 Answers  


What is Object Oriental Progam

2 Answers  


if x<>=z then statement end what is the cyclomatic complexity

5 Answers  


What is Template Specialization?

1 Answers   Lucent,


What is stl in c++ with example?

0 Answers  


why we are using the fork command?.. how it works?

1 Answers  


Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"

2 Answers  


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....

0 Answers   Microsoft,


What are stl algorithms?

0 Answers  


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

2 Answers  


Categories