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 an operator in c++?
Is map sorted c++?
What is linked list in c++?
What are the data types in c++?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Explain method of creating object in C++ ?
Show the declaration for a static member variable.
What are enumerations?
What is the difference between passing by reference and passing a reference?
Explain the difference between new() and malloc() in c++?
What do you understand by a pure virtual member function?
What is the difference between public and private data members?
What is the benefit of c++?
What do you mean by function and operator overloading in c++?
how to explain our contribution in the project?