Declare a function that can return a pointer to a function of the same type

Q.  Can we declare a function that can return a pointer to a function of the same type? (C programming)
- Published on 25 Jun 15

a. Yes
b. No, we cannot do it directly

ANSWER: No, we cannot do it directly
 
We would need to declare typedef for it and typedef will do the job or then return void*.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)