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
Which software is used to run c++ program?
How many characters are recognized by ANSI C++?
What are exceptions c++?
Write about an iterator class?
What is a tuple c++?
Array base access faster or pointer base access is faster?
Difference between overloaded functions and overridden functions
Describe the process of creation and destruction of a derived class object?
Do class declarations end with a semicolon?
Is c++ the hardest programming language?
What c++ library is string in?
What is time h in c++?
What is pointer to array in c++?
How to get the current position of the file pointer?
What is the exit function in c++?