Question PSC-ARR-0065
HardWhat will be the output of the following 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 i + 1 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], m[1][2]
- A.
7 3 6
- B.
3 7 6
- C.
Sign up free to see the answer and a step-by-step explanation.