begin
x
in x := 1;
begin y in x := x + 2; y := x end;
c
end
What is the value of x at the beginning of the execution of c?
int x = 1; { int y; x = x + 2; y = x; } c;
Answer: 3
begin
x
in x := 2;
begin x in x := 3 end;
c
end
What is the value of x at the beginning of the execution of c?
int x = 2; { int x = 3; } c;
Answer: 2