short
int
x;
char
x0,x1;
x=0x1122;
x0=((
*)&x)[0];
//低地址单元
x1=((
*)&x)[1];
//高地址单元
大小端模式
原文:http://www.cnblogs.com/zhangbing12304/p/6754219.html