Comment on Q: Why can I access an out-of-scope C++ var? A: So you rent a hotel room...parentComments−msluyter15yI agree, in particular, that the image of how the stack works is critical for really understanding the problem. The hotel analogy is nice, but doesn't help much in generalizing or extrapolating to other issues.
Comments
I agree, in particular, that the image of how the stack works is critical for really understanding the problem. The hotel analogy is nice, but doesn't help much in generalizing or extrapolating to other issues.