#include<stdio.h>
int main()
{
int a = -6;
unsigned int b = 4;
if((a+(int)b) > 0)
printf("a+b>0\n");
else
printf("a+b<0\n");
int z = a+b;
printf("z= %d\n",z);
if(z > 0)
printf("z>0");
else
printf("z<0");
}
结果
z= -2
z<0