http://blog.csdn.net/thefutureisour/article/details/8147277
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
unsigned int a=32;
int b=-6;
unsigned int c=a+b; //把b转化为unsigned int 0xfffffffa + 0x00000020 ----->26(十进制) //-6补码被当成一个无符号数
printf("%u",c);
}
c 0x0000001a unsigned int
b 0xfffffffa int
a 0x00000020 unsigned int