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
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Differentiate between late binding and early binding.
What is tellg () in c++?
What is expression parser in c++
Can we get the value of ios format flags?
Show the declaration for a static function pointer.
What is type of 'this' pointer? Explain when it is get created?
What is the use of ::(scope resolution operator)?
What is the difference between the indirection operator and the address of oper-ator?
What is private inheritance?
How does com provide language transparency?
What are enumerations?
What is stream and its types in c++?
What does I ++ mean in c++?
How do you sort a sort function in c++ to sort in descending order?