Use function pointers with just f(1,2) instead of (*f)(1,2).