main()
{
unsigned int a=5;
int b=3;
int c;
printf(“%d\n”,b-a);
if(b-a>0)
printf(“b is bigger than a!”);
else
printf(“a is bigger than b!”);
}
为什么输出结果会是:
-2
b is bigger than a!
按照程序不是应该输出a大于b么
>> 本文固定链接: http://www.vcgood.com/archives/2905
unsigned int a=5;
去掉unsigned
哦,这个我已经知道
是隐式类型转换的问题
感谢你