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?


apply the procedure Modify to X;

print the value of X;

1 個解答