24. Procedure Modify 定義如下:
procedure Modify (Y)
Begin
print the value of X;
Y = 9;
print the value of Y;
End
假設X 是global variable,如果Modify 是call by reference,請問執行下列程式片段,會印出何值?(此三值以分號隔
開。)
X = 5;
Modify (X);
print the value of X;
(A) 9;9;9 (B) 5;9;9 (C) 5;9;5 (D) 5;5;5