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

Answer Posted / avtar singh sidhu

The compiler was designed to recognize main as the entry
point in a program. It started that way with C, and C
compilers were just built that way. It's the same way with
C++ and Java just because of habit, consistency, standards,
etc.

Is This Answer Correct ?    28 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is template and type convertion

1999


Why should a c++ programmer be interested in stl?

646


Explain stl.

906


How connect plc and pc through software

1923


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1895






Is stl open source?

634


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1978


What is a standard template library (stl)?

649


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.

1382


What are stl algorithms?

627


What is stl stack?

665


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

2084


Can we use stl in coding interviews?

1282


What is a list in c++ stl?

695


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1664