-
-
Save JIElite/105c41acd1cce8a1294b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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