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 are the advantages of using a pointer? Define the operators that can be used with a pointer.

992


Differentiate between late binding and early binding.

1199


What is tellg () in c++?

1235


What is expression parser in c++

2414


Can we get the value of ios format flags?

1071


Show the declaration for a static function pointer.

1006


What is type of 'this' pointer? Explain when it is get created?

968


What is the use of ::(scope resolution operator)?

1018


What is the difference between the indirection operator and the address of oper-ator?

1054


What is private inheritance?

1045


How does com provide language transparency?

963


What are enumerations?

1051


What is stream and its types in c++?

988


What does I ++ mean in c++?

1035


How do you sort a sort function in c++ to sort in descending order?

940