0

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.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.