Reading a function-pointer declaration
Structures & Declarations

Answer & solution
Answer: C (no official key was published)
In int (*f)(int *), the parentheses make f a pointer. Its target is a function taking one int-pointer argument and returning int. Thus C; it is not a function returning a pointer.
Read outward from f. The parentheses bind *f before the following parameter list, so f is a pointer. Its pointed-to object is a function whose parameter is int* and whose return type, written at the left, is int. Without parentheses, int *f(int*) would instead declare a function returning int*. That binding distinction gives C.


![Question 1.11, GATE 2000: Given struct node with int i and float j, followed by struct node *s[10], what is s: array of structure pointers, two-field structure of arrays, three-field structure, or array of structures?](../../../assets/questions/CS-2000-Q11-1.webp)
![Question 1.17, GATE 2000: A structure contains short s[5] and a union holding either float y or long z. short,float,long occupy 2,4,8 bytes. Ignoring alignment, choose size 22,14,18,10 bytes.](../../../assets/questions/CS-2000-Q17-1.webp)
![Question 1.17, GATE 2000: A structure contains short s[5] and a union holding either float y or long z. short,float,long occupy 2,4,8 bytes. Ignoring alignment, choose size 22,14,18,10 bytes.](../../../assets/questions/CS-2000-Q17-2.webp)