ProgrammingHard

Rotating the 2 x 2 matrix [[1, 2], [3, 4]] by 90 degrees counter-clockwise gives which first row?

  1. A. 2 4
  2. B. 1 3
  3. C. 3 1
  4. D. 4 2

Correct answer: A. 2 4

A counter-clockwise rotation turns the last column into the first row, read top to bottom. The last column is 2 and 4.

More C Programming questions

Exams that ask this topic