#include <stdio.h>
void s(int n1, int n2)
{
printf("%d + %d = %d \n", n1, n2, n1+n2);
}
void sh(char * st)
{
printf("%s \n", st);
}
int main() {
char * st="fun";
int num1=10, num2=20;
void (*f)(int, int) = s;
void (*f2)(char *) = sh;
f(num1, num2);
f2(st);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: