#include <stdio.h> int getSum(int a, int b){ return a + b; } int main() { int sum; /* f_ptr is a pointer to function which takes two integer as input and returns an integer. We can use addressof operator to get the base address of any function. */ int (*f_ptr)(int, int) = &getSum; /* Now, calling getSum function using f_ptr */ sum = (*f_ptr)(6, 4); printf("Addition is: %d", sum); return 0; }