Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / brian

Using static class execution can actually begin before main()!

E.g.

class MyStatic
{
public:
MyStatic() { cout << "MyStatic Class called." << endl; };
};

static MyStatic ms;

void main()
{
cout << "main called." << endl;
}

Output : =
MyStatic Class called.
main called.

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What two types of containers does the stl provide?

1039


What does stl stand for in basketball?

1222


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

2226


What is stl language?

1211


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

1147


What is stl stand for?

1277


What is stl in c++ with example?

1215


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

3080


Define stl.

1327


To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

2294


What are stl algorithms?

1211


Name the different types of stl containers.

1217


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.

2024


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; }

2433


Explain stl.

1413