uint什么意思 怎么用 单片机c语言编程

日期:

最佳答案

1、这不是C言语关键字,只是顺序计划者为了便利本人做的宏定义“#DEFINE UINT UNSIGNED INT”,固然可能把它写成其他的字符串,不过还是用这个好,大年夜部分的顺序员都用这个,另有UCHAR等,都是类似的。uint在单片机中常常碰到,定义一个无标记整形变量2、其他罕见定义:typedef unsigned char uint8_t; //无标记8位数typedef signed char int8_t; //有标记8位数typedef unsigned int uint16_t; //无标记16位数typedef signed int int16_t; //有标记16位数typedef unsigned long uint32_t; //无标记32位数typedef signed long int32_t; //有标记32位数typedef float float32; //单精度浮点数typedef double float64; //双精度浮点数一般来说整形对应的*_t范例为:uint8_t为1字节 uint16_t为2字节 uint32_t为4字节 uint64_t为8字节 你可能参照这个。