ProgrammingHard

int d[2][3] = {1, 2, 3, 4, 5, 6}; printf("%d", d[1][0]); What is printed?

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

Correct answer: A. 4

The brace list fills the array in row-major order, so d[1] starts with the fourth value, 4.

More C Programming questions

Exams that ask this topic