Home / Questions / Where is the auto variables stored?
Explanatory Question

Where is the auto variables stored?

👁 1,122 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

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.