🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Pointers and 2D Arrays: all 15 questions

Quiz: Pointers and 2D Arrays · Question 1 of 15

For int m[3][5];, at what position (counting from 0) in memory is m[2][3]?

For int m[3][5];, at what position (counting from 0) in memory is m[2][3]?

  1. A.10
  2. B.13
  3. C.17
  4. D.15
Answer & explanation

Correct answer: 13

Row-major: i × columns + j = 2 × 5 + 3 = 13.

Can you get the rest right without peeking?

Take the timed Quiz: Pointers and 2D Arrays quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →