In which memory a class gets stored(in heap /in stack)?
And why??
Answer Posted / pravin
The stack is a place in the computer memory where all the variables that are declared and initialized before runtime are stored. The heap is the section of computer memory where all the variables created or initialized at runtime are stored.
Hence,classes will be stored in heap memory.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Write a C++ Program to check whether a number is prime number or not?
What's c++ used for?
Is c++ platform dependent?
what you know about c++?
Difference between delete and free.
Explain the difference between realloc() and free() in c++?
What is dev c++ used for?
Write about c++ storage classes?
Define friend function.
Why is it called c++?
What is c++ hash?
What is an operator in c++?
How can you link a c program with a c function?
What is iterator in c++?
What is the difference between equal to (==) and assignment operator (=)?