___________
5. The following is a program segment and the definition of a procedure named sub.
5。下面是一段程序,一个过程的定义命名子。
…
…
3; X procedure sub (Y)
3;程序子(Y) X
sub (X); 5; Y
5; 子(X);y
print the value of X;
打印X的值;
…
…
A. What value will be printed by the program segment if parameters are passed by value?
a什么价值将打印的程序段如果参数值传递?
____________
_______
B. What value will be printed by the program segment if parameters are passed by reference?
b .什么价值将打印的程序段如果参数是通过引用传递?
____________
_______
6. The following is a program segment and the definition of a procedure named sub.
6。下面是一段程序,一个过程的定义命名子。
…
…