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