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 rule of three?
Does c++ have finally?
Is string an object in c++?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Why do we need pointers?
Which is the best c++ compiler for beginners?
What is the use of endl?
Is oops and c++ same?
What is the difference between the parameter to a template and the parameter to a function?
What is the benefit of encapsulation?
Write a program which uses Command Line Arguments
Why do we use constructor?
Tell me can a pure virtual function have an implementation?
What is private inheritance?
Can we use pointers in c++?