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 / ravi.g

Usually class will get stored when the object/s are created.

Class will get sored in stack segment when the object is
created inside the functions.

When objects are created globally they will get stored in
the data segment.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give 10 points of differences between C & C++.

1091


Can non-public members of another instance of the class be retrieved by the method of the same class?

1042


Explain virtual class and friend class.

1006


Is c++ a dying language?

1111


How do you declare a set in c++?

923


Explain the difference between using macro and inline functions?

1068


Why is it necessary to use a reference in the argument to the copy constructor?

1068


Explain shallow copy?

1005


What is the limitation of cin while taking input for character array?

2000


What is virtual table?

1065


Write a struct time where integer m, h, s are its members?

921


How do you clear a set in c++?

1028


What is a rooted hierarchy?

1111


Explain some examples of operator overloading?

1041


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

1126