Multiple choice technology programming languages

int *p[10]

  1. p is a pointer to a 10 element integer array

  2. p is a 10-element array of pointers to integer quantity

  3. p is a pointer to an integer quantity

  4. None of the above

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

In int *p[10], the array operator [ ] has higher precedence than *. This means p is an array of 10 elements, where each element is a pointer to an integer. int (*p)[10] would be a pointer to an array.