Interview Question
Software Engineer / Developerswhere do you find a heap when you were running early during boot ?
you initialize the stack before you run C program, but you didnt intialize heap before you run C
therefore local var will have no choice but to be stored in stack
Because the scope of auto variables is only in the block in which they are declared. As soon as the program exits from the block, the auto variables no longer exist.
- KT September 05, 2010