← Quiz: Pointers and 2D Arrays: all 15 questions
Quiz: Pointers and 2D Arrays · Question 4 of 15
With 4-byte ints and int m[3][4];, how many bytes apart are m and m + 1?
With 4-byte ints and int m[3][4];, how many bytes apart are m and m + 1?
- A.4
- B.12
- C.16
- D.48
Answer & explanation
Correct answer: 16
m points to a row of 4 ints, so m + 1 skips one whole row: 4 × 4 = 16 bytes.
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 →