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 use of void main() in C++ language?

1167


Is c++ a float?

1107


Describe private, protected and public – the differences and give examples.

1256


Can you please explain the difference between using macro and inline functions?

1090


Explain static and dynamic memory allocation with an example each.

1154


What gives the current position of the put pointer?

1042


Explain differences between alloc() and free()?

1206


What is the purpose of templates in c++?

1088


Is set c++?

1047


When should we use multiple inheritance?

1096


Tell me can a pure virtual function have an implementation?

1097


How do you clear a set in c++?

1132


Is swift faster than c++?

1070


What is an adjust field format flag?

1180


Can char be a number c++?

1100