How can I create a pointer to a function in which some parameters are set for definition by definition.
Here is an example of what I mean:
Say I have a function
int add (int n, int m) {
return n+m;
}
and type of function pointer
typedef int (*increaser)(int);
What I want is a pointer to a function addthat fixes the first parameter to 1 and leaves the second open paragraph. Something along the lines
increaser f = &add(1,x);
How can i do this?
source
share