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