array of pointers to functions

Hi,

I know how to make a pointer to a function, something like this:

double (*function)(void);

This creates a pointer to a functions which takes no arguments and returns a double.
Now, as an exercice, i want to make an array of pointers to functions, but i don't know how to do that, if it is possible.

Anyone knows how to do this?

hannesvdc

typedef int ( *ptr2Function ) ( int );

ptr2Function arr1[10] = { NULL };


or


int ( *arr[10] ) ( int ) = {NULL};
Topic archived. No new replies allowed.