// illustrating scope and visibility #include int main() { int x = 3; int y = 0; int z; { y = x; cout << "inner x = " << x << endl; int x = 5; cout << "first inner y = " << y << endl; y=x; cout << "second inner y = " << y << endl; int z = 1; cout << "inner z = " << z << endl; } cout << "outer x = " << x << endl; cout << "outer y = " << y << endl; cout << "outer z = " << z << endl; return 0; } /////////////////////////////////////////////////////////// inner x = 3 first inner y = 3 second inner y = 5 inner z = 1 outer x = 3 outer y = 5 outer z = 134514228