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 a dll entry point?

563


What is protected inheritance?

602


How many static variables are created if you put one static member into a template class definition?

569


Is c++ harder than java?

572


How are the features of c++ different from c?

596






Is it possible to write a c++ template to check for a function's existence?

580


What is c++ hash?

624


Is it possible for a member function to use delete this?

576


Which operator cannot be overloaded c++?

593


Please explain class & object in c++?

606


what is VOID?

635


Comment on local and global scope of a variable.

587


Is oops and c++ same?

580


What is atoi in c++?

570


What is an orthogonal base class in c++?

662