摘要: 假如变量x类型为int,位于地址0x100处,有一个十六进制值为0x01234567,地址范围为0x100~0x103的字节顺序依赖于机器的类型。 ##大端模式Big-endian 大端模式,是指数据的高字节保存在内存的低地址中,而数据的低字节保存在内存的高地址中,这样的存储模式有点儿类似于把数据当 阅读全文
posted @ 2020-02-10 20:15 风暴松鼠 阅读(268) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { int a; int b[10] ; printf(" b:%d\n b+1:%d\n &b:%d\n &b+1:%d \n", b, b+1, &b, &b+1); printf("sizeof(b):%d \n", sizeof(b 阅读全文
posted @ 2020-02-10 14:06 风暴松鼠 阅读(82) 评论(0) 推荐(0)