double fr1(double *a){ return *a;}
double fr2(double *a){ return *a;}
double fr3(double *a){ return *a;}
double fr4(double *a){ return *a;}
and this array of functions
typedef double (*arrayOfFunctions)(double *);
i allocated memory for this array
arrayOfFunctions *DynamicArrayOfFunctions =(arrayOfFunctions*) malloc(size*sizeof(arrayOfFunctions));
my question is if there is a way to initialize the array with the fr1 fr2 fr3 fr4 in a automatic way not manually not like
DynamicArrayOfFunctions[0] = fr1;
DynamicArrayOfFunctions[1] = fr2;
......
for example traveling the array and assign each fr function a space inside the array.