#include <stdio.h>

void helpfunction()
 {
  printf("Ich bin die helpfunction\n");
 }

void hallowelt()
 {
  printf("Ich sage Hallo Welt\n");
 }

void calc()
 {
  printf("Ich rechne....%d*%d=%d\n",66,99,66*99);
 }

void taugenix()
 {
  printf("Ich tue gar nichts.\n");
 } 
/*Funktionsindex auf alle Funktionen*/
void (*funkindex[])() = { helpfunction, hallowelt,
                                          calc, taugenix };

int main()
{
 int i;

 printf("Es stehen 4 Funktionen zur Verfügung,\n");
 printf("Bitte wählen sie eine aus (1-4) : ");
 scanf("%d",&i);

/*Funktionsaufruf*/
 (*funkindex[i-1])();

 return 0;
}
