#include <stdio.h>
#include <stdlib.h>
//c function pointer example
int addInt(int n, int m);
int addInt(int n, int m) {
return n+m;
}
int main() {
int (*functionPtr)(int,int);
functionPtr = &addInt;
int sum = (*functionPtr)(2, 3);
printf("The sum is %d", sum);
//The sum is 5
return 0;
}