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...

In which memory a class gets stored(in heap /in stack)?
And why??

Answer Posted / pravin

The stack is a place in the computer memory where all the variables that are declared and initialized before runtime are stored. The heap is the section of computer memory where all the variables created or initialized at runtime are stored.
Hence,classes will be stored in heap memory.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does iomanip mean in c++?

1142


Which bit wise operator is suitable for turning off a particular bit in a number?

1064


Can you explicitly call a destructor on a local variable?

986


What is c++ iterator?

1066


What does scope resolution operator do?

1063


Difference between pointer to constant vs. Pointer constant

1064


Why was c++ created?

978


Which software is used for c++ programming?

1049


How can I learn dev c++ programming?

986


Is c++ proprietary?

1016


What is the cout in c++?

1013


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1012


Differentiate between late binding and early binding.

1209


What is the use of endl in c++?

978


What does the linker do?

988