What is the meaning of the following declaration in C programming language?
What is the meaning of the following declaration in C programming language?
int (*p) [5];
Show answerHide answer
Correct answer: (D) p is a pointer to an array of 5 integers
Explanation
The parentheses bind * to p first, so p is a pointer, and that pointer points to an array of 5 ints. Without parentheses, int *p[5] would be an array of 5 pointers to int.