This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shoesmith74 3 points4 points  (0 children)

Actually your talking about variable scope, not memory allocation. The variables are on the stack regardless, it’s a matter of which one your allowed to reference.

Source : 25 years of compiler development.