1.

Consider the following program in a language that has dynamic scooping var x: real; procedure show: begin print(x);end; procedure small; var x: real; begin x: = 0.125; show; end; begin x:=0.25 show; small end. Then the output of the program is:

A. 0.125 0.125
B. 0.25 0.25
C. 0.25 0.125
D. 0.125 0.25
Answer» D. 0.125 0.25


Discussion

No Comment Found