Which declaration correctly defines a function that accepts a pointer to float and returns a pointer to pointer to char?

Options

  • A. char **fun(float *)
  • B. char *fun(float **)
  • C. char fun(float *)
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. char **fun(float *)

Detailed Explanation

Correct Answer: Option A

Explanation:
The return type char ** means pointer to pointer to char. The parameter float * means pointer to float. The complete declaration is char **fun(float *).