unsigned int a = 0x1234; unsigned char b = *(unsigned char *)&a;
0x00
0x12
0x34
0x1234
//大端存储:高位存储在低地址(高低)
//小端存储:低位存储在低地址( 低低)
int是4字节,高位补0
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题