C syntax for functions returning function pointers
Start with your declaration for f1: int (*f1)(float); You want f2 to be a pointer to a function returning f1, so substitute f1 in the declaration above with the declaration for f2: int (* f1 )(float); | +—–+—–+ | | v v int (*(*f2)(double))(float); The declaration reads as f2 — f2 *f2 — is a … Read more