/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
typedef int(* meinFunktionsZeiger)(int a, int b);
int MacheEtwas(meinFunktionsZeiger funktion, int t1, int t2)
{
return funktion(t1, t2);
}
int Add(int p1, int p2)
{
return p1 + p2;
}
int main()
{
printf("%d\n", MacheEtwas(Add, 1, 3));
return 0;
}