#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]) {
// 扩展运算
short si = -32768;
unsigned short usi = si;
printf("%d,%d\n",si,usi);
printf("0x%08x,0x%08x\n",si,usi);
// 0xffff8000,0x00008000 带符号位整数前面补符号,无符号整数位前面补0
int i = si;
unsigned int ui = usi;
printf("%d,%d\n",i,ui);
printf("0x%08x,0x%08x\n",i,ui);
// 0xffff8000,0x00008000 带符号位整数前面补符号,无符号整数位前面补0
return 0;
}