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 typedef?

1102


Difference between pass by value and pass by reference?

1160


What is difference between array and vector in c++?

1040


Describe the syntax of single inheritance in C++?

1082


What is vector processing?

1160


Is c the same as c++?

1020


How the keyword struct is different from the keyword class in c++?

1046


How do we balance an AVL Tree in C++?

1138


Who created c++?

1073


How do you save a c++ program?

1049


What is format for defining a structure?

1093


Array base access faster or pointer base access is faster?

2311


Ask to write virtual base class code?

2770


What is runtime errors c++?

1131


How can you link a c++ program to c functions?

1111