Generally variables are stored in heap memory. When he
variables are created in stack?
Answer Posted / rohit repale
It is wrong to say that genarally variables will be stored
in heap memmory.
Bcos Storage area always depends on the storage class of
the variable.
If the variables are created by new i.e. dynamic memory is
created then it use heap memory.
static & extern variables are stored in static memory.
And other normal variables are stored in stack.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is atoi in c++?
Write syntax to define friend functions in C++.
What are static member functions?
Is string an object in c++?
What is the use of data hiding?
What is the prototype of printf function?
What is a breakpoint?
What size is allocated to the union variable?
Explain polymorphism?
What is a unnitialised pointer?
What is heap sort in c++?
what is multi-threading in C++?
What is friend class in c++ with example?
What is c++ & why it is used?
What are the operators in c++?