🎙 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 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?

  1. A.4
  2. B.12
  3. C.16
  4. 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 →