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
Is atoi safe?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is c++ used for in games?
How do you sort a sort function in c++ to sort in descending order?
Who calls main function?
What is an adjust field format flag?
Who made c++?
Describe linked list using C++ with an example.
What is abstraction with real time example?
How many types of modularization are there in c++?
What data encapsulation is in c++?
What do you mean by enumerated data type?
What are proxy objects in c++?
What is the main function c++?
What is late binding c++?