I wanted to know if I can pass functions with varying no. of arguments to a fn pointer. say for example, i define a fn pointer as
void (*fptr)(const void* , const void*);
If there are another pair of fucntions defined as :
void f1(int*, int* );
void f2(int*, int*, int*);
now, can i pass the addresses of both these functions to the function pointer.
fptr = &f1;
fptr = &f2;