3. (15 points) Given the following code, what is the value of p and a if the arguments are passed by value, value/result
Posted: Thu May 05, 2022 12:48 pm
3. (15 points) Given the following code, what is the value of p and a if the arguments are passed by value, value/result, or reference? procedure f(x, y, z) begin X:=x+1 y :=z z:=z+1 end This is the call in main: Assume the array starts at 1 not 0. p=1; a[1] = 10; a[2] := 11; f(p, a[p], p);