时间:2021-08-08 08:25:25 | 栏目:C代码 | 点击:次
int main()
{
short a=-1;
unsigned int b=a;
int c=a;
printf("%x\n", b);
printf("%d\n", c);
a=1;
b=a;
c=a;
printf("%x\n", b);
printf("%d\n", c);
return 0;
}
int main()
{
unsigned short a=-1;
unsigned int b=a;
int c=a;
printf("%x\n", b);
printf("%d\n", c);
a=1;
b=a;
c=a;
printf("%x\n", b);
printf("%d\n", c);
return 0;
}