← Quiz: Pointers and 2D Arrays: all 15 questions
Quiz: Pointers and 2D Arrays · Question 3 of 15
What is int p[4];?
What is int *p[4];?
- A.An array of 4 pointers to int
- B.A pointer to an array of 4 ints
- C.A pointer to a pointer to int
- D.A function returning a pointer
Answer & explanation
Correct answer: An array of 4 pointers to int
[] binds tighter than *, so p is first an array (of 4), and each element is an int pointer.
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 →