Multiple choice technology programming languages

int (*p)[10]

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

  2. p is a pointer to an integer quantity

  3. p is a 10-element array of pointers to an integer

  4. None of the above

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

The parentheses override default operator precedence. Because *p is grouped together, p is declared as a pointer. It points to an array of 10 integers. Without parentheses, int *p[10] would be an array of 10 pointers.