🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: C Pointers: all 10 questions

Quiz: C Pointers · Question 2 of 10

For int a[] = {2, 4, 6, 8};, what is (a + 3)?

For int a[] = {2, 4, 6, 8};, what is *(a + 3)?

  1. A.6
  2. B.8
  3. C.3
  4. D.2
Answer & explanation

Correct answer: 8

*(a + 3) is a[3] = 8.

Can you get the rest right without peeking?

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

Start the quiz →