|
Speak with code
#include <stdio.h>
#include <stdlib.h>
void fun1( int i, double d ){
printf("fun1: i=%d d=%f\n",i,d);
}
void fun2( int i, double d ){
printf("fun2: i=%d d=%f\n",i,d);
}
void F(int x, double y, void (*func)( int, double ))
{
func(x,y);
}
int main()
{
F(1,2,&fun1);
F(1,2,&fun2);
exit(0);
} |
|