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 are built-in functions? What is the syntax for the definition?
Why pointer is used in c++?
How the delete operator differs from the delete[]operator?
Mention the ways in which parameterized can be invoked. Give an example of each.
Is c++ the most powerful language?
What is the default width for ouputting a long integer using the insertion operator?
Explain the operation of overloading of an assignment operator.
If I is an integer variable, which is faster ++i or i++?
How many characters are recognized by ANSI C++?
What is an accessor in c++?
Why do we use vector in c++?
What are move semantics?
Explain how to initialize a const data member.
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What is constructor c++?