← 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]?
- A.10
- B.13
- C.17
- 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 →