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