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
Give 10 points of differences between C & C++.
Can non-public members of another instance of the class be retrieved by the method of the same class?
Explain virtual class and friend class.
Is c++ a dying language?
How do you declare a set in c++?
Explain the difference between using macro and inline functions?
Why is it necessary to use a reference in the argument to the copy constructor?
Explain shallow copy?
What is the limitation of cin while taking input for character array?
What is virtual table?
Write a struct time where integer m, h, s are its members?
How do you clear a set in c++?
What is a rooted hierarchy?
Explain some examples of operator overloading?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal