Chinaunix
标题:
求助
[打印本页]
作者:
q30
时间:
2004-12-13 14:24
标题:
求助
IBM字节顺序是什么样的。\r\n例如:a=0x01020304\r\n在RS/6000上是怎么存储的,是大字节顺序,还是小字节顺序。\r\n\r\n\r\n如果大家哪位兄弟附近有ibm RS/6000 , PowerPc 机器,帮忙试试:\r\n#include <stdio.h>;\r\nmain()\r\n\r\n{\r\n int aa=0x01020304;\r\n char* cc = (char *) &\r\n printf(\" %2d, %2d, %2d, %2d \\n\", cc[0],cc[1],cc[2],cc[3]);\r\n}
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2