Is it possible, in C, to define a function, which takes integer values as
argument, through the values it assumes at the each one of the value
of its arguments? Something like the below (which does NOT work):
double f(int i);
for (i = 0; i < N; i++)
f(i) = table_of_values[i]; //some predefined array of values
I know arrays are best in this simple case but I wanted to use this
to define a function, like the f(i) above, in terms of another function
of more arguments but holding all the other arguments fixed, like in
f(i) = g(i,a) for a given function g and parameter a.