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
How should runtime errors be handled in c++?
Why c++ is created?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
Can I learn c++ without c?
what is Loop function? What are different types of Loops?
Explain friend class?
What is pointer in c++ with example?
What is the use of c++ programming language in real life?
What is prototype for that c string function?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What are the main features of c++?
What is type of 'this' pointer?
Can we distribute function templates and class templates in object libraries?
What are exceptions c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?