int8类型的范围

范围是:-128~127

十进制和十六进制对应表为

十进制 0 1 ~ 126 127 -128 -127 ~ -2 -1
十六进制 0 1 ~ 7E 7F 80 81 ~ FE FF

可使用代码进行计算

#include 
#include "stdint.h"

int main()
{
   /*  Write C code in this online editor and run it. */
   printf("Hello, World! \n");
   int8_t test = 0x80;
	
	printf("%d\r\n", test);
   return 0;
}

你可能感兴趣的:(嵌入式,c语言,算法)