✏️ Explanatory Question

Where is the auto variables stored?

👁 1,122 Views
📘 Detailed Answer
💡

Answer with Explanation

Auto variables can be stored anywhere, so long as recursion works. Practically, they're stored on the stack. It is not necessary that always a stack exists. You could theoretically allocate function invocation records from the heap.