main()
{
char ch='x';
int x;
unsigned y;
float z=0;
x=ch-'z';
y=x*x;
y+=2*x+1;
z-=y/x;
printf("ch=%c,x=%d,y=%u,z=%f",ch,x,y,z);
}结果Y=1 Z=0。0000000为什么啊?
Y为什么不是13啊
參考答案:怎么又是你呀.
x=ch-'z'; X=-2
y=x*x; Y=4
y+=2*x+1; Y=Y+(2*X+1) Y=4+(2+(-2))+1 Y=1
z-=y/x;