当前位置:网站首页>double、float、long占几个字节?
double、float、long占几个字节?
2022-07-20 20:27:00 【河西剑客】
16位编译器
char :1个字节
char*(即指针变量): 2个字节
short int : 2个字节
int: 2个字节
unsigned int : 2个字节
float: 4个字节
double: 8个字节
long: 4个字节
long long: 8个字节
unsigned long: 4个字节
32位编译器
char :1个字节
char*(即指针变量): 4个字节(32位的寻址空间是2^32, 即32个bit,也就是4个字节。同理64位编译器)
short int : 2个字节
int: 4个字节
unsigned int : 4个字节
float: 4个字节
double: 8个字节
long: 4个字节
long long: 8个字节
unsigned long: 4个字节
64位编译器
char :1个字节
char*(即指针变量): 8个字节
short int : 2个字节
int: 4个字节
unsigned int : 4个字节
float: 4个字节
double: 8个字节
long: 8个字节
long long: 8个字节
unsigned long: 8个字节
边栏推荐
- 【C语言】文件相关操作
- When the microstrip line is pulled open for 7h, you feel very stable?
- 互联网行业的中年危机是35岁这分水岭
- 金仓数据库KingbaseES数据库管理员指南--15.1. 管理视图
- do-while 怎么调用编写的 odps sql 呢?
- Sword finger offer 13 Range of motion of robot
- 【硬件基础4】二极管(原理、特性、类型、电路分析)
- Expose the insider of Apache Doris data Lake analysis technology? Rare earth Developers Conference free registration!
- Win64 驱动内核编程-31.枚举与删除映像回调
- [error analysis] grid access
猜你喜欢
Type personnalisé: structure (1)
王炸动力 创富快人一步!祥菱大熊猫2.0动力产品正式上市
从fail到pass,DDR调试到底经历了什么?
Recommendation Book Evolutionary Psychology: the mystery of magic behind Liu Genghong and Wang Xinling
剑指 Offer 12. 矩阵中的路径
Share some advanced debugging and usage skills of vscode scenarios
剑指 Offer 13. 机器人的运动范围
如何设计业务异地多活架构 - 作业
Supermarket order management system based on SSM framework +mysql [source code + document +ppt]
剑指 Offer 25. 合并两个排序的链表
随机推荐
Recommendation Book Evolutionary Psychology: the mystery of magic behind Liu Genghong and Wang Xinling
请问一下大佬,flink 如何做到 mysql 数据库与elastic search的数据实时同步
Reading notes (I) -- Kite Runner
SPARK Parquet嵌套类型的向量化支持以及列索引(column index)
SAP 电商云 Spartacus UI SiteContextUrlParams 的实现明细介绍
金仓数据库KingbaseES数据库管理员指南--15.3. 管理同义词
算术运算符2(阁瑞钛伦特软件-九耶实训)
Audience analysis and uninstall analysis have been comprehensively upgraded, and HMS core analysis service version 6.6.0 has been updated
金仓数据库KingbaseES数据库管理员指南--17数据库调度概念
Learning notes (1) getting to know uni app for the first time
金仓数据库KingbaseES数据库管理员指南--12模式对象的管理
node的fs模块
Asemi rectifier bridge mb10m parameters, mb10m size, mb10m characteristics
Pycharm input cursor suddenly thickens
Intel汇编语言程序设计学习-第五章 过程-上
欧菲光:已布局运动相机、智能家居等光学镜头 / 影像模组,部分产品已实现量产
Custom type: structure (I)
Modularization of node
SQL: SELECT t.`app_code`, SUM(t.`success_num`) AS success_num, SUM(t.`
【Kaggle】如何有效避免OOM(out of memory)和漫长的炼丹过程