#include<stdio.h>
int addition ();
int main()
{
int result;
int (*ptr) ();
ptr = &addition;
result = (*ptr) ();
printf ("The sum is %d", result);
}
int addition ()
int a, b;
printf("Enter two numbers: ");
scanf("%d %d", &a, &b);
return a + b;
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment