typedef int (CALLBACK *Function)(int,int);
Function myfunc;
int addFunc(int a,int b)
{
return a+b;
}
int subtract(int a,int b)
{
return a-b;
}
//test.operation=either add or subtract;
if(operation == add)
myfunc = addFunc;
else
myfunc = subtract;
// call our desired one
result=myfunc(a,b);