#include <stdio.h>

void Si(int n1, int n2)
{
    printf("%d + %d = %d \n", n1, n2 ,n1+n2);
}

void So(char * str)
{
    printf("%s \n", str);
}

int main()
{
    char * str="Function Pointer";
    int num1=10, num2=20;

    void (*fptr1)(int, int) =Si;
    void (*fptr2)(char *) =So;

    fptr1(num1, num2);
    fptr2(str);
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: