Houjun Liu

stack

stack is where all local variables and parameters live for a function. The stack frame goes away when the function returns.

stack grows downwards in memory; each function call sets aside some space in stack regardless if local variables are used.