Question PSC-ARR-0066
HardWhat is the output of this pseudocode?
Integer m[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}
Integer i, j, t
for (each i from 0 to 2)
for (each j from 0 to 2)
t = m[i][j]; m[i][j] = m[j][i]; m[j][i] = t
end for
end for
Print m[0][2], m[2][0]
- A.
9 1
- B.
7 3
- C.
Sign up free to see the answer and a step-by-step explanation.