摘要:
struct 占用的内存大小:struct{char a;short b;int c;char d;}//占用12字节struct{char a;char b;short c;int d;}//占用 8 个字节struct{char a:1;char b:1;}//占用1个字节struct{char a:1;int b:1;}//占用4个字节涉及到的概念:内存对齐(提升寻址效率)、 阅读全文
posted @ 2012-07-08 21:42
lipeil
阅读(184)
评论(0)
推荐(0)

浙公网安备 33010602011771号