suneet saini


{ City } noida
< Country > india
* Profession *
User No # 72583
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 0
Questions / { suneet saini }
Questions Answers Category Views Company eMail




Answers / { suneet saini }

Question { Persistent, 7173 }

Generally variables are stored in heap memory. When he
variables are created in stack?


Answer

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