ProgrammingVery hard

int m[3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}; int (*row)[4] = m; printf("%d", (*(row + 2))[3]); What is printed?

  1. A. 11
  2. B. 8
  3. C. 9
  4. D. 12

Correct answer: D. 12

row + 2 points to the third row, and [3] selects its last element, which is 12.

More C Programming questions

Exams that ask this topic