int Max(int x, int y)
{ int z; if (x > y)
{ z = x; } else { z = y; } return z;
}
void testFuctionPointer()
{ int(*p)(int, int);//定义一个函数指针,函数指针指向的是哈函数的地址 int a, b, c; p = Max; printf("请输入a和b"); scanf("%d%d",&a,&b); c = (*p)(a, b); printf("c=%d", c);
} 本题考查函数指针的概念,需要加强学习