C Quiz – 106 | Question 2
What’s the meaning of following declaration in C language?
int (*p)[5]; |
chevron_right
filter_none
(A) It will result in compile error because there shouldn’t be any parenthesis i.e. “int *p[5]” is valid.
(B) p is a pointer to 5 integers.
(C) p is a pointer to integer array.
(D) p is an array of 5 pointers to integers.
(E) p is a pointer to an array of 5 integers
Answer: (E)
Explanation: Here p is basically a pointer to integer array of 5 integers. In case of “int *p[5]”, p is array of 5 pointers to integers.
Quiz of this Question
Recommended Posts:
- C Quiz - 105 | Question 1
- C Quiz - 106 | Question 3
- C Quiz - 106 | Question 4
- C Quiz - 106 | Question 5
- C Quiz - 107 | Question 1
- C Quiz - 107 | Question 2
- C Quiz - 107 | Question 3
- C Quiz - 107 | Question 4
- C Quiz - 105 | Question 4
- C Quiz - 101 | Question 5
- C Quiz - 107 | Question 5
- C Quiz - 101 | Question 4
- C Quiz - 101 | Question 3
- C Quiz - 101 | Question 2
- C Quiz - 101 | Question 1

