#include <stdio.h>

void f1(int var)
{
    printf("this is f1 and var is: %d\n", var);
}

void f2(int var)
{
    printf("this is f2 and var is: %d\n", var);
}

void f3(int var)
{
    printf("this is f3 and var is: %d\n", var);
}

int main()
{
    void (*pf[])(int) = {f1, f2, f3};

    int c = 0;
    while(c < 3)
    {
        pf[c](c);
        ++c;
    }

    return 0;
}