function pointers:
int f (int);//Declare a function
Int (*PF) (int) =&f;//creates a function pointer and initializes it with the function address of function f.
In fact, when a function name is used, it is always translated by the compiler into a pointer. The top & that's not necessary, just show
A description of the task that the compiler will perform implicitly.
int ans;
Ans=f (25);//The function f is called with the name, in fact, when executed, the function name F is converted to a functional pointer, pointing to the address of the function in memory.
Ans= (*PF) (25);//Convert the function pointer to a function name, actually in the execution of the conversion back
ANS=PF (25);//is invoked directly with a function pointer, so the indirect invocation of a function is not necessary.
function pointers (--c primer the 13th chapter)