Considerthe following psuedocode:
$$X: integer := 1$$
$$y: integer := 2$$
procedure add
$$X:=X+y$$
procedure second (P: procedure)
$$x : integer := 2$$
$$P()$$
procedurefirst
$$y : integer := 3$$
second(add)
first()
write_integer(x)
Whatdoesit print if the language uses dynamic scoping with deep binding?
Create a FREE account and get: