computer science programming languages?

Suppose the procedure Modify is defined in our pseudocode of Chapter 5 by

procedure Modify (Y)

Y<--9 ;

print the value of X;

print the value of Y.

If parameters are passed by value, what will be printed when the following program segment is executed? What if parameters are passed by reference?



X<--5;

apply the procedure Modify to X;

print the value of X;

1 個解答

評分
還有問題?馬上發問,尋求解答。