---
title: "stack"
type: concept
related: [Stack, Function]
source: https://www.jemoka.com/posts/kbhstack/
confidence: high
status: active
---

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.
