int *(*pfp) ();
Creates a pointer to a function that returns int *. The name of the function pointer pfp.
Here is an example:
int* myFunc(void)
{
return NULL;
}
int main(int argc, char**argv)
{
int *(*pfp) (void);
pfp = myFunc;
return 0;
}
Note. Since the parameters of the function pointer are not (void) that you specified, this means that the list of parameters is not specified in C. In C ++, this would mean that it is a function without parameters.
source
share