Consider the following procedure: procedure mystery (x, y, z); integer x, y, z;beginz = 2; y= z+x;endand consider the following code fragment: A[1] := 2;A[2] := 1;n := 1;mystery (A[1],A[n],n);
What will be the final values of n, A[1] and A[2] if the parameters are passed by name?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here