Array of function pointers?
Ok, I'm a bit confused as to how to declare this.
I want to pass into one of my functions an array (of variable size) of function pointers. As it's variable size I assume I need to pass it as a pointer to the beginning of the array + count of elements.
Now, the syntax for declaring function pointers is already odd, so how do I declare this? Each function would take and return a double.
Would I declare my function like this:
void theFunction(double (**pfunc)()),int count)
And use it like this to call the first function (function #0):
double d = (*pfunc)(0.5);