- char: 1字节
- short: 2字节
- int: 4字节
- long: 4字节(32位系统)/ 8字节(64位系统)
- long long: 8字节
- float: 4字节
- double: 8字节
- pointer: 4字节(32位系统)/ 8字节(64位系统)
- 无符号整型(unsigned int):占用4个字节(32位)或8个字节(64位)。
- 无符号字符型(unsigned char):占用1个字节。
- 无符号短整型(unsigned short):占用2个字节。
- 无符号长整型(unsigned long):占用4个字节(32位)或8个字节(64位)。
- 有符号整型(int):占用4个字节(32位)或8个字节(64位)。
- 有符号字符型(char):占用1个字节。
- 有符号短整型(short):占用2个字节。
- 有符号长整型(long):占用4个字节(32位)或8个字节(64位)。
- uint8_t 1字节
uint16_t 2字节
uint32_t 4字节
uint64_t 8字节
11-07
3万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交