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

What is the rule of three?

996


Does c++ have finally?

1028


Is string an object in c++?

1150


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2539


Why do we need pointers?

1001


Which is the best c++ compiler for beginners?

1090


What is the use of endl?

984


Is oops and c++ same?

1044


What is the difference between the parameter to a template and the parameter to a function?

1116


What is the benefit of encapsulation?

1074


Write a program which uses Command Line Arguments

1174


Why do we use constructor?

1051


Tell me can a pure virtual function have an implementation?

1022


What is private inheritance?

1089


Can we use pointers in c++?

1047