当前位置:网站首页>Data storage (1)
Data storage (1)
2022-07-06 22:19:00 【wx61de0d6870204】
C Language type :1. Built in type
Basic classification of types : integer ——char,short,int,long
floating-point ——float,double
Construction type —— An array type , Type of structure (struct), Enumeration type (enmu), Joint type (union)
Pointer types ——int *pi,char *pa,float* pf,void* pv
Empty type ——void Indicates empty type ( No type )
2. Custom type
The meaning of type :1. Use this type to open up the size of the space ( Size determines the range of use )
2. How to look at the perspective of memory space
Big end, small end : Big end ( Storage ) Pattern , The low bit of data is stored in the high address of memory , And the high end of the data , Stored in a low address in memory
The small end ( Storage ) Pattern , The low bit of data is stored in the low address of memory , And the high end of the data , Stored in a high address in memory
Why is there a big end and small end mode ? This is because in a computer system , We are in bytes , Each address unit corresponds to this byte , A byte is 8bit. But in c In language, except 8bit Of char outside , also 16bit Of short type ,32bit Of long type . in addition , For digits greater than 8 Bit processor , for example 16 Bits or 32 Bit processor , Because the register width is larger than one byte , So there must be a problem of how to arrange multiple bytes , This leads to the big end storage mode and the small end storage mode
边栏推荐
- Insert sort and Hill sort
- GPS从入门到放弃(十六)、卫星时钟误差和卫星星历误差
- 414. The third largest digital buckle
- Bat script learning (I)
- GPS du début à l'abandon (XIII), surveillance autonome de l'intégrité du récepteur (raim)
- Seata aggregates at, TCC, Saga and XA transaction modes to create a one-stop distributed transaction solution
- C#实现水晶报表绑定数据并实现打印4-条形码
- GNN,请你的网络层数再深一点~
- AI 企业多云存储架构实践 | 深势科技分享
- 图像的spatial domain 和 frequency domain 图像压缩
猜你喜欢
Yyds dry goods inventory C language recursive implementation of Hanoi Tower
GPS from getting started to giving up (XV), DCB differential code deviation
Common sense: what is "preservation" in insurance?
Management background --3, modify classification
每日一题:力扣:225:用队列实现栈
微信红包封面小程序源码-后台独立版-带测评积分功能源码
Xiaoman network model & http1-http2 & browser cache
C # realizes crystal report binding data and printing 4-bar code
搜素专题(DFS )
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
随机推荐
二叉(搜索)树的最近公共祖先 ●●
经纪xx系统节点VIP案例介绍和深入分析异常
Common sense: what is "preservation" in insurance?
[线性代数] 1.3 n阶行列式
CCNA Cisco network EIGRP protocol
HDU 4912 paths on the tree (lca+)
保存和检索字符串
RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
About the professional ethics of programmers, let's talk about it from the way of craftsmanship and neatness
【数字IC手撕代码】Verilog无毛刺时钟切换电路|题目|原理|设计|仿真
Shortcut keys in the terminal
Qt | UDP广播通信、简单使用案例
[sciter bug] multi line hiding
Maximum product of three numbers in question 628 of Li Kou
Management background --1 Create classification
2500个常用中文字符 + 130常用中英文字符
Management background --5, sub classification
【sdx62】WCN685X将bdwlan.bin和bdwlan.txt相互转化操作方法
Classic sql50 questions
China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)