C单片机数据类型
- 开发
- 53
-
C语言数据类型
关键字 |
位数 |
表示范围 |
stdint关键字 |
ST关键字 |
unsigned char |
8 |
0 ~ 255 |
uint8_t |
u8 |
char |
8 |
-128 ~ 127 |
int8_t |
s8 |
unsigned short |
16 |
0 ~ 65535 |
uint16_t |
u16 |
short |
16 |
-32768 ~ 32767 |
int16_t |
s16 |
unsigned int |
32 |
0 ~ 4294967295 |
uint32_t |
u32 |
int |
32 |
-2147483648 ~ 2147483647 |
int32_t |
s32 |
unsigned long |
32 |
0 ~ 4294967295 |
|
|
long |
32 |
-2147483648 ~ 2147483647 |
|
|
unsigned long long |
64 |
0 ~ (2^64)-1 |
uint64_t |
|
long long |
64 |
-(2^64)/2 ~ (2^64)/2-1 |
int64_t |
|
float |
32 |
-3.4e38 ~ 3.4e38 |
|
|
double |
64 |
-1.7e308 ~ 1.7e308 |
|
|
原文地址:https://blog.csdn.net/wagnbo/article/details/135215601
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:https://www.suanlizi.com/kf/1739934152230309888.html
如若内容造成侵权/违法违规/事实不符,请联系《酸梨子》网邮箱:1419361763@qq.com进行投诉反馈,一经查实,立即删除!