D
dust
Hi,
I found a article ( http://www.maxi-pedia.com/what+is+heap+and+stack )
about heap and stack.
In this article (in sub-section "Heap and stack from programming
perspective") I see that storage for local variables for function
called by main (calcSize() in this ex.) is allocated in heap. Is it
true?. What I was assuming is space for local variables of function
called by main will be allocate in separate stack frame (within main
stack) separated by called "Activation record".
Could you please explain me this.
I found a article ( http://www.maxi-pedia.com/what+is+heap+and+stack )
about heap and stack.
In this article (in sub-section "Heap and stack from programming
perspective") I see that storage for local variables for function
called by main (calcSize() in this ex.) is allocated in heap. Is it
true?. What I was assuming is space for local variables of function
called by main will be allocate in separate stack frame (within main
stack) separated by called "Activation record".
Could you please explain me this.