ProgrammingVery hard

int a[2][2] = {{1, 2}, {3, 4}}; int (*r)[2] = a + 1; printf("%d", r[0][1]); What is printed?

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

Correct answer: D. 4

r points at the second row, so r[0][1] is a[1][1], which holds 4.

More C Programming questions

Exams that ask this topic