![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
迷糊的佳佳
这个作者很懒,什么都没留下…
展开
-
判断机器的大小端
#include union endian { unsigned int word; unsigned char bytes[4]; }; int main(int argc, char* argv) { union endian en; en.word=0x12345678; printf("%x\n",en.b原创 2013-01-21 20:22:31 · 348 阅读 · 0 评论 -
sizeof
#include struct AA { char a; double b; float c; }; struct BB{ int a; double b; float c; }; struct CC{原创 2013-01-21 20:08:44 · 307 阅读 · 0 评论