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
Does c++ have arraylist?
Is c++ a dying language?
What is the use of turbo c++?
Is java based off c++?
What language does google use?
Write about the local class and mention its use?
which operator is used for performing an exponential operation a) > b) ^ c) none
Define pointers?
What is the difference between public, private, and protected access?
In c++, what is the difference between method overloading and method overriding?
How do you decide which integer type to use?
Tell me an example where stacks are useful?
What are stacks?
What is problem with overriding functions?
What are the advantages of using a pointer?