Though we urge you not to program using this style, we are providing an
exercise that uses nested blocks to help you understand the scope rules.
Give the output that this code fragment would produce if embedded in an
otherwise complete, correct program.
{
int x = 1;
cout <>
int x = 2;
int x = 3;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here