当前位置:网站首页>内存大小端
内存大小端
2022-07-01 08:29:00 【ughome】
long abc = 0x12345678;
abc >>= 8;
printf("%x\n", (unsigned char)abc);
abc >>= 8;
printf("%x\n", (unsigned char)abc);
abc >>= 8;
printf("%x\n", (unsigned char)abc);
0x12345678
在小端机器上的内存分布为78 56 34 12
当右移时在内存窗口表现的是向左移动,比如移动一次变成了 56 34 12 00
这时候整数值位0X00123456
但是当你把他看成char时,他只看第一个字节,也就是0X56了。
边栏推荐
- View drawing process analysis
- Using settoolkit to forge sites to steal user information
- SPL installation and basic use (II)
- Maneuvering target tracking -- current statistical model (CS model) extended Kalman filter / unscented Kalman filter matlab implementation
- 【华为机试真题详解】判断字符串子序列【2022 Q1 Q2 | 200分】
- Stack implementation calculator
- Programmer's regimen
- [untitled]
- Utiliser Beef pour détourner le navigateur utilisateur
- [untitled]
猜你喜欢

CPU設計實戰-第四章實踐任務一簡單CPU參考設計調試

手工挖XSS漏洞

《微机原理》——微处理器内部及外部结构

seaborn clustermap矩阵添加颜色块

01 numpy introduction
![[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]](/img/0f/972cde8c749e7b53159c9d9975c9f5.png)
[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]

Audio-AudioRecord create(一)

factory type_id::create过程解析

Pipeline detection of UAV Based on gazebo

Principle and application of single chip microcomputer - principle of parallel IO port
随机推荐
How to use OKR as the leadership framework of marketing department
[JS reverse] MD5 encryption parameter cracking
Adding color blocks to Seaborn clustermap matrix
MATLAB小技巧(16)矩阵特征向量特征值求解一致性验证--层次分析
Serial port to WiFi module communication
Yolov5进阶之六目标追踪环境搭建
The use of word in graduation thesis
初学者如何正确理解google官方建议架构原则(疑问?)
leetcode T31:下一排列
分享2022上半年我读过的7本书
Luogu p3799 demon dream stick
CPU设计实战-第四章实践任务一简单CPU参考设计调试
Embedded-c language-10-enumeration / (function) pointer (function) / multi-level pointer /malloc dynamic allocation / file operation
Precautions and skills in using regular expressions in golang
Provincial selection + noi Part II string
Codeworks round 803 (Div. 2) VP supplement
MAVROS发送自定义话题消息给PX4
《单片机原理及应用》—定时器、串行通信和中断系统
Mavros sends a custom topic message to Px4
Principle and application of single chip microcomputer - off chip development