Nesting Scope
•
Scopes “{ … }” can be nested just like we have
been doing with “if” statements.
•
This code is fine because the variable y exists until the matching brace, which is at the end of the program after the cout << y << endl;