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

How should runtime errors be handled in c++?

1148


Why c++ is created?

1006


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3920


Can I learn c++ without c?

1144


what is Loop function? What are different types of Loops?

1231


Explain friend class?

1131


What is pointer in c++ with example?

1075


What is the use of c++ programming language in real life?

1051


What is prototype for that c string function?

1138


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1044


What are the main features of c++?

1013


What is type of 'this' pointer?

1065


Can we distribute function templates and class templates in object libraries?

1081


What are exceptions c++?

1044


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1077