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
Is c++ free?
what is the use of void main() in C++ language?
Explain one-definition rule (odr).
How does com provide language transparency?
Differentiate between an inspector and a mutator ?
What is :: operator in c++?
What are the two shift operators and what are their functions?
What is the use of bit fields in structure declaration?
Difference between overloaded functions and overridden functions
How would you find out if a linked-list is a cycle or not?
What is a lambda function c++?
What are maps in c++?
Describe the syntax of single inheritance in C++?
What is pointer -to-members in C++? Give their syntax?
How to declaring variables in c++?