Let s say that I define the following structure:
struct MyData {
int a;
char b;
int c;
byte d;
byte e;
}
我含糊地记住,这种结构的规模不仅取决于数据类型,而且取决于记忆的一致。 在32个轨道上,MyData公司的结构是4个 by子+1个 by子+4个 by子+1个 by子=11个 by子。 这里我的问题是,记忆调和增加了结构的规模:4个 by+1个 by(+3个 by)+4个 by+1个 by(+3个 by)+1个 by(+3个 by)=20个 by。
这是否是错误的? 我失踪了吗? 这一措辞是否具体? 我能否包装结构? 如果是的话,什么是好处和不利条件?
感谢!