Multiple choice technology programming languages

How do you define a pointer to a function that returns a character pointer and receives another pointer to function that neithers takes an argument nor returns anything.

  1. char * (f* (*) ))

  2. char * ( f) (()());

  3. (char) (f) (());

  4. (char) (*f) ()();

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This declares a function pointer 'f' that returns a char pointer and takes one argument - a pointer to a function taking no arguments and returning nothing. The syntax is 'char (*f)(void ()(void))' or equivalent with spacing. Option B's parenthetical structure, despite spacing oddities, best represents this complex declaration.