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 setw manipulator in c++?
Explain one-definition rule (odr).
When is dynamic checking necessary?
What is a singleton c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is the cout in c++?
What is the difference between C and CPP?
What is a stack? How it can be implemented?
Difference between pointer to constant and constant pointer to a constant. Give example.
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Write about the members that a derived class can add?
What is the difference between an enumeration and a set of pre-processor # defines?
Which operations are permitted on pointers?
What is setf in c++?
What are the basics of local (auto) objects?