ProgrammingVery hard

int m[2][3] = {{1, 2, 3}, {4, 5, 6}}; int (*r)[3] = m + 1; What is r[0][2]?

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

Correct answer: D. 6

m + 1 points at the second row. Its element 2 is m[1][2], which is 6.

More C Programming questions

Exams that ask this topic