1 #include <stdio.h>
2
3 int main(int argc, char argv[])
4 {
5 char a = -1;
6 signed char b = -1;
7 unsigned char c = -1;
8 printf("char: %d\nsigned char: %d\nunsigned char: %d\n", a, b, c);
9 return 0;
10 }
说明我的机器把char当signed char处理