Code Snippets C

#include
int sum(int a, int b);
int main(void)
{
int (*p) (int j, int k);
int result;
p = sum; /* get address of sum() */
result = (*p) (12, 23);
printf("%d", result);
return 0;
}
int sum(int a, int b)
{
return a+b;
}