内存对齐
摘要:首先看一个简单的程序:#include<stdio.h>void main(){ struct inner { char c1; double d; // char c2; }; printf("the size of struct inner is :%d\n",sizeof(struct inner));}在Ubuntu10.04下用gcc编译输出结果为:the size of s...
阅读全文
posted @ 2010-07-29 19:31