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 are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What is the main purpose of c++?
What is runtime polymorphism in c++?
When to use “const” reference arguments in a function?
What is long in c++?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What is private inheritance?
Name four predefined macros.
What is a driver program?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What can c++ be used for?
Can we use clrscr in c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
What are pointer-to-members? Explain.
What is oop in c++?