#include "iostream.h"

#include "dos.h"

main()

{

//AIM : to test call by pointer to the function fundaf

      int i;

      void f1(void),f2(void),f3(void);

      void (*f[3])();

      f[0]=f1;

      f[2]=f2;

      f[3]=f3;

      for(i=0;i<3;(*f[i])(),i++);

      return 0;

}

void f1()

      {

            cout<<"\nThis ";

      }

void f2()

      {

            cout<<"Works ";

      }

void f3()

      {

            cout<<"Well ";

      }