单选题

下列程序的输出结果是(     )。

#include

main()

{ int a=2,b=3,P;

p=f(a,b);

printf(”%d”,p);

}

int f(a,b)

{ int c;

if(a>b)c=1;

else if(a==b)c=0;

else c=-l;

return(c);

}

【正确答案】 A
【答案解析】