标签:
#include <stdio.h> static union{ char c[4];unsigned long mylong;} endian_test = { {‘l‘,‘?‘,‘?‘,‘b‘} }; #define ENDIANNESS ( (char) endian_test.mylong ) int main() { printf("%c",ENDIANNESS); }
略显简洁
标签:
原文地址:http://www.cnblogs.com/wanliyun/p/4663577.html