Skip to content

Instantly share code, notes, and snippets.

@JIElite
Created November 9, 2014 13:39
Show Gist options
  • Save JIElite/105c41acd1cce8a1294b to your computer and use it in GitHub Desktop.
Save JIElite/105c41acd1cce8a1294b to your computer and use it in GitHub Desktop.
#include<stdio.h>
int add(int n1, int n2){
return n1 + n2;
}
int main(){
int (*fptr)(int, int);
fptr = add;
int num1 = 10, num2 = 30;
printf("num1 + num2 is : %d\n", fptr(num1, num2));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment