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
Which is better c++ or java?
How does java differ from c and c++?
List the advantages of inheritance.
What are mutator methods in c++?
Explain one method to process an entire string as one unit?
If you don’t declare a return value, what type of return value is assumed?
What is java and c++?
what is a reference variable in C++?
What is setf in c++?
What is the main purpose of c++?
What is a driver program?
What does catch(…) mean?
What character terminates all character array strings a) b) . c) END
Why do we learn c++?
What are protected members in c++?