The alignment is always the same as the type size; that is, a variable of type int is four bytes long and will be stored at a 4-byte boundary.
排列的方式通常和类型的大小保持一致;例如,int类型的一个变量的长度是4字节,因此要将它存储在4字节区域。
In this example, the structure s is aligned to an 8-byte boundary, and so is the s.var2 variable.
在这个示例中,结构 s 以 8 个字节为单位进行对齐,s.var2 变量同样也是如此。
Therefore, analyzing the main variable which can decide the suitable boundary of the private enterprise's system is of extremely vital significance.
为此,对决定私营企业制度适用边界的主要变量进行分析具有十分重要的意义。
应用推荐