#include <stdio.h>
int main()
{
	char a = 128;//128=127+1=-128;//因为char类型最大能保存的范围为-128~127
	//1000 0000
	//11111111 11111111 11111111 1000 0000
	printf("%u\n", a);
	system("pause");
	return 0;
}

wKiom1Y0kPnTBLj4AACmEmNDu9A019.jpg

#include <stdio.h>
int main()
{
	char a = -1;;
	//1000 0000
	//11111111 11111111 11111111 1111 1111
	printf("%u\n", a);
	system("pause");
	return 0;
}

wKioL1Y0kbniawH3AACmEmNDu9A741.jpg

#include <stdio.h>
int main()
{
	char a = -1;
	//1000 0000
	//11111111 11111111 11111111 1111 1111
	printf("%d\n", a);
	system("pause");
	return 0;
}

wKioL1Y0klTClQB3AACbYZKr790476.jpg