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
What is a dll entry point?
What is protected inheritance?
How many static variables are created if you put one static member into a template class definition?
Is c++ harder than java?
How are the features of c++ different from c?
Is it possible to write a c++ template to check for a function's existence?
What is c++ hash?
Is it possible for a member function to use delete this?
Which operator cannot be overloaded c++?
Please explain class & object in c++?
what is VOID?
Comment on local and global scope of a variable.
Is oops and c++ same?
What is atoi in c++?
What is an orthogonal base class in c++?