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 the use of void main() in C++ language?
Is c++ a float?
Describe private, protected and public – the differences and give examples.
Can you please explain the difference between using macro and inline functions?
Explain static and dynamic memory allocation with an example each.
What gives the current position of the put pointer?
Explain differences between alloc() and free()?
What is the purpose of templates in c++?
Is set c++?
When should we use multiple inheritance?
Tell me can a pure virtual function have an implementation?
How do you clear a set in c++?
Is swift faster than c++?
What is an adjust field format flag?
Can char be a number c++?