当前位置:网站首页>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
边栏推荐
- Report on technological progress and development prospects of solid oxide fuel cells in China (2022 Edition)
- Save and retrieve strings
- C # réalise la liaison des données du rapport Crystal et l'impression du Code à barres 4
- MongoDB(三)——CRUD
- 3DMAX assign face map
- Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
- Mongodb (III) - CRUD
- Set status bar style demo
- Classic sql50 questions
- GPS from getting started to giving up (XIII), receiver autonomous integrity monitoring (RAIM)
猜你喜欢
Data processing skills (7): MATLAB reads the data in the text file TXT with mixed digital strings
labelimg的安装与使用
GPS du début à l'abandon (XIII), surveillance autonome de l'intégrité du récepteur (raim)
Assembly and interface technology experiment 5-8259 interrupt experiment
Some problems about the use of char[] array assignment through scanf..
Oracle-控制文件及日志文件的管理
GPS from getting started to giving up (12), Doppler constant speed
Write a rotation verification code annotation gadget with aardio
C # réalise la liaison des données du rapport Crystal et l'impression du Code à barres 4
LeetCode刷题(十一)——顺序刷题51至55
随机推荐
Classic sql50 questions
Mysql相关术语
anaconda安装第三方包
硬件開發筆記(十): 硬件開發基本流程,制作一個USB轉RS232的模塊(九):創建CH340G/MAX232封裝庫sop-16並關聯原理圖元器件
GPS从入门到放弃(十五)、DCB差分码偏差
做接口测试都测什么?有哪些通用测试点?
lora同步字设置
MongoDB(三)——CRUD
数据处理技巧(7):MATLAB 读取数字字符串混杂的文本文件txt中的数据
RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
AI 企业多云存储架构实践 | 深势科技分享
【10点公开课】:视频质量评价基础与实践
第4章:再谈类的加载器
Solve project cross domain problems
GPS from getting started to giving up (XV), DCB differential code deviation
make menuconfig出现recipe for target ‘menuconfig‘ failed错误
Yyds dry goods inventory C language recursive implementation of Hanoi Tower
i.mx6ull搭建boa服务器详解及其中遇到的一些问题
Save and retrieve strings
ZABBIX proxy server and ZABBIX SNMP monitoring