Suppose I have a function int func(int x, int y, int z)
and I need to call it within another function 10 times, ie, int runge(int, ... , int func(int a, int b))
.
I know I could create 10 functions, i.e.
int runge1(int a, int b) {return func(1, a, b);}
But, I'd like a simpler method of doing this. Basically I want to create a function pointer as such:
for(int i=0; i<10; i++)
{
//func would have two variables input into it, variable1, variable2
int (*func)=func(i, variable1, variable2);
}