🎙 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 3 of 15

What is int p[4];?

What is int *p[4];?

  1. A.An array of 4 pointers to int
  2. B.A pointer to an array of 4 ints
  3. C.A pointer to a pointer to int
  4. 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 →