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

Write a C++ Program to check whether a number is prime number or not?

1169


What's c++ used for?

1157


Is c++ platform dependent?

1141


what you know about c++?

1199


Difference between delete and free.

1135


Explain the difference between realloc() and free() in c++?

1069


What is dev c++ used for?

1079


Write about c++ storage classes?

1249


Define friend function.

1110


Why is it called c++?

1086


What is c++ hash?

1156


What is an operator in c++?

1117


How can you link a c program with a c function?

1127


What is iterator in c++?

1165


What is the difference between equal to (==) and assignment operator (=)?

1135