Multiple choice

______________ is the declararion of a pointer to an array.

  1. int *p[10]

  2. int (*p)[10]

  3. int *p

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The syntax int (*p)[10] declares p as a pointer to an array of 10 integers. The parentheses are crucial - without them, int *p[10] would be an array of 10 pointers. This pointer can point to entire arrays, not individual integers.