unsigned int a = 3; unsigned int b = 4294967294; // unsigned int 最大值为4294967295 int c = a - b; printf("c = %u\n", c); // 输出为5, 不像unsigned short 有类型提升