69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("129:%X\n",129); //129的二进制表示
char ch=129;
printf("%d\n",ch); //129拷贝给char以后,打印char时机器根据最高位为1,判定ch为负数,所以取反+1并且添加一个负号打印出来,
return 0;
}
129:81
-127
Process returned 0 (0x0) execution time : 0.016 s
Press any key to continue.