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
Explain rtti.
Describe new operator?
Can we use struct in c++?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What are the two main components of c++?
What is pair in c++?
What happens if a pointer is deleted twice?
Describe the advantages of operator overloading?
What is java and c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
How do you define a class in c++?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Why do we use vector in c++?
Can I create my own functions in c++?
Is c++ an oop?