代码是:
#include<stdio.h>
int main()
{
signed x,a;
unsigned y,b;
a=(signed)10u;
b=(unsigned)-10;
y = (signed)10u + (unsigned)-10;
x = y;
printf("a=%d, b=%u",a,b);
if(x==y)
printf("\nx=%d, y=%d",x,y);
else if(x!=y)
printf("\nx=%u, y=%u",x,y);
return 0;
}
输出是:
a=10, b=65526
x=0, y=0
请解释这个输出。我正在研究 Turbo C。