#include <stdio.h>
int main()
{
unsigned int uint;
int i = -1;
uint = i;
printf("%x %d\n", uint, i);
//输出ffffffff -1
uint = 0xffffffff;
i = uint;
printf("%x %d\n", uint, i);
//输出ffffffff -1
int j = -1;
printf("%x\n", (~j));
//输出0
int k = 1;
printf("%x\n", (~k));
//输出0xfffffffe
char c = 1;
printf("%d\n", (~c));
//输出-2
}