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