C-Complicated Declarations MCQ Questions and Answers
Practice ModeShowing 10 of 32 questions
Q21
Meaning of: int *(*(*arr[5])())();
Answer: Option B
Explanation: Array of 5 pointers to functions returning pointer to function returning pointer to int
Q22
What is: void (*fp)(int, float);
Answer: Option B
Explanation: Pointer to function taking int and float, returning void
Q23
Interpret: char (*(*x[3])())[5];
Answer: Option C
Explanation: Array of 3 pointers to functions returning pointer to array of 5 chars
Q24
What does: int (*p[5])(); declare?
Answer: Option C
Explanation: Array of 5 pointers to functions returning int
Q25
Meaning of: double *(**ptr)[10];
Answer: Option B
Explanation: Pointer to pointer to array of 10 pointers to double
Q26
What is: int (*(*(*func)())[5])();
Answer: Option B
Explanation: Pointer to function returning pointer to array of 5 pointers to functions returning int
Q27
Interpret: void (*(*array[5])())(int);
Answer: Option B
Explanation: Array of 5 pointers to functions returning pointer to function taking int and returning void
Q28
What does: char (**p[10])(int); declare?
Answer: Option C
Explanation: Array of 10 pointers to pointers to functions taking int and returning char
Q29
Meaning of: int (*(*(*foo)[5])())[10];
Answer: Option B
Explanation: Pointer to array of 5 pointers to functions returning pointer to array of 10 integers
Q30
What is: float *(*(*ptr)())[5];
Answer: Option B
Explanation: Pointer to function returning pointer to array of 5 pointers to float