C-Complicated Declarations MCQ Questions and Answers

Practice Mode
Showing 10 of 32 questions
Q31
Interpret: int (*((*f)(int))[5])(void);
  • A Function pointer array
  • B Pointer to function taking int and returning pointer to array of 5 pointers to functions taking void and returning int
  • C Array of function pointers
  • D Invalid declaration
Answer: Option B
Explanation: Pointer to function taking int and returning pointer to array of 5 pointers to functions taking void and returning int
Q32
What does: void (*(*(*f)())[5])(int); declare?
  • A Function returning array
  • B Pointer to function returning pointer to array of 5 pointers to functions taking int and returning void
  • C Array of function pointers
  • D Pointer to array of functions
Answer: Option B
Explanation: Pointer to function returning pointer to array of 5 pointers to functions taking int and returning void
Questions and Answers for Competitive Exams Various Entrance Test