请教一下出什么错了
#include<stdio.h>int main()
{
int max(int,int);
int min(int,int);
int (*p)(int,int);
int a,b,c,d;
printf("enter two numbers");
scanf("%d,%d",&a,&b);
printf("\n1:max,2:min\n");
scanf("%d",&c);
if (c==1)
p=max;
else if(c==2)
p=min;
d=(*P)(a,b);
printf("\n%d",d);
return 0;
}
int max(int a,int b)
{
if(a>=b)
return(a);
else
return(b);
}
int min(int a,int b)
{
if(a<=b)
return (a);
else return(b);
}
编译出错error C2065: 'P' : undeclared identifier
error C2100: illegal indirection
error C2064: term does not evaluate to a function