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 meant by stl in c++?

0 Answers  


Write a program in C/C++ to implement reader- writer problem

1 Answers   Wipro,


How to write a function that goes through an array of characters and eliminates any elements that are not letters (Legal letters can be either in an uppercase or a lowercase format.) The function removeNonLetters should return the new effective size of the array as the result.

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  


Describe the elements of Microsoft Word screen. Write down steps for creating, saving, retrieving, editing and printing a document.

2 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  


Write a program to print the swapping in two no and using three variable.

5 Answers   Broadridge,


give me the defination of inheritance?

5 Answers   Infosys,


What is a standard template library (stl)? What are the various types of stl containers?

0 Answers  


what is c++

2 Answers  


i want a road rash 3d game code if some one know please help me

1 Answers  


WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

1 Answers   Syntel,


Categories