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 are built-in functions? What is the syntax for the definition?

1026


Why pointer is used in c++?

1083


How the delete operator differs from the delete[]operator?

1049


Mention the ways in which parameterized can be invoked. Give an example of each.

1003


Is c++ the most powerful language?

1003


What is the default width for ouputting a long integer using the insertion operator?

1174


Explain the operation of overloading of an assignment operator.

1106


If I is an integer variable, which is faster ++i or i++?

1013


How many characters are recognized by ANSI C++?

1359


What is an accessor in c++?

1020


Why do we use vector in c++?

1004


What are move semantics?

1081


Explain how to initialize a const data member.

1071


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

750


What is constructor c++?

1065