Generally variables are stored in heap memory. When he
variables are created in stack?
Answer Posted / suneet
According to the C standard the storage will be.
1.variable with storage class 'auto' ie., local to the
function - in stack memory.
2.variable with storage class when 'extern' and 'static' are initialized stored in data segment otherwise found in bss.
3.variable with storage class 'register' in processor
register. But this register variable will be treated as
auto when there is no enough memory in the processor.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is late binding c++?
What is expression parser in c++
What are c++ storage classes?
What is token c++?
Can we use pointers in c++?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What is endianness?
Explain the extern storage classes in c++.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Explain the benefits of proper inheritance.
Can I learn c++ without learning c?
What is the use of setprecision in c++?
Name the debugging methods that are used to solve problems?
Why is c++ so fast?
How do you define/declare constants in c++?