摘要: 遇到了一个关于高地位字节序的问题,发现一般的c++笔试题上见到的不多,所以也研究下: 1 /* 2 * 写出下面的输出 3 * 4 */ 5 6 char cA[]={0x11,0x12,0x13,0x14,0x21,0x22,0x23,0x24}; 7 char cB[]={0x14,0x13,0x12,0x11,0x24,0x23,0x22,0x21}; 8 9 struct st10 {11 int a;12 int b;13 };14 15 void main()16 {17 st sa,sb;18 st * s1 = &sa;19 2... 阅读全文
posted @ 2013-03-13 22:47 帕拉美 阅读(635) 评论(0) 推荐(0)