Q: Why can I access an out-of-scope C++ var? A: So you rent a hotel room...http://stackoverflow.com/questions/6441218/c-local-variable-can-be-accessed-outside-its-scope/6445794#6445794 by sutro • 15 years ago 418 98 15 years agoSTstackoverflow.com