← 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)?
- A.6
- B.8
- C.3
- 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 →