记录一下函数指针的使用:
int max(int a,int b)
{
if(a>b)
return a;
else
return b;
}
int main(int argc, char* argv[])
{
int z;
int (*pmax)(int a, int b);
pmax = max;
z = (*pmax)(5, 10);
printf("maxmum=%d\r\n", z);
return 0;
}