Forget Code launches a powerful code generator for building API's

Function Pointer in C in C

#include <stdio.h>

void functionpointer(int x, int y)
    printf("Value of x is %d & y is %d\n", x,y);

int main()
    void (*functionpointer_ptr)(int,int);//defining  functionpointer_ptr as pointer with 2 arguments
    functionpointer_ptr = &functionpointer; // functionpointer_ptr is a pointer to function functionpointer() 

    // Calling functionpointer() using functionpointer_ptr

    return 0;