Addition and subtraction of two numbers using function pointers in c