C Language - Function Pointer
#include <stdio.h>
//#include <STDLIB.H>
int sum (int a, int b)
{
return a*b;
}
int main()
{
printf ("The multiplication is %d\n", sum(3,4));
int (*ptr)(int, int);
ptr = ∑
int d = (*ptr) (1, 45);
printf ("the multiplication is %d\n", d);
printf ("the multiplication is %d", ptr (10, 10));
}
// ScreenShots:
Comments
Post a Comment