2023年3月28日

摘要: #include<stdio.h> int main(void) { int sum,b,c,d,e; int a = 0x12345678; b = (a &0xff) ; c = ((a>>8)&0xff); d = ((a>>16) &0xff); e = ((a>>24) &0xff); s 阅读全文

posted @ 2023-03-28 18:04 牛man 阅读(11) 评论(0) 推荐(0) 编辑

摘要: 大端:低权值的数据保存在高地址,高权值得数据保存在低地址 小端:低权值的数据保存在低地址,高权值得数据保存在高地址 什么是权值? 权值代表的是优先级,先写入内存的数据,权值最高,最后写入内存中的数据权值最低 例如: 0x 12345678 权值: 高 ————> 低,1权值最高,8权值最低 什么是高 阅读全文

posted @ 2023-03-28 11:36 牛man 阅读(30) 评论(0) 推荐(0) 编辑