大字节序(Big Endian):低地址存高位
int main() { int x=1; char *temp = NULL; temp= (char *)&x; if (*temp ==1) { printf("Little endian!\n"); } else { printf("Big endian!\n"); return 0; } }
判断字节序,布布扣,bubuko.com
判断字节序
原文:http://www.cnblogs.com/wanghaoran/p/3800100.html