C++ Programming :: Objects and Classes - Discussion
Home > C++ Programming > Objects and Classes > MCQs Questions Discussion
4 / 41
Choose the correct option.
Objects created using new operator are stored in __ memory.
ACache
BHeap
CStack
DNone of the above.
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
There are two types of memories that we use in a c++ program.
Stack: all member variables declared inside a function are assigned memory in stack.
Heap: This can be used to dynamically allocate the memory while the program is running. We use new keyword to dynamically allocate the memory.
Read Full Answer
Report Error
Please Login First Click Here