Structure Alignment Examples
Visual Studio 2005
The following represent a set of examples showing structure requirements.
Example 1
Example 2
struct { // size = 24 bytes, alignment = Quadword int a; double b; short c; };
Example 3
Example 4
Visual Studio 2005
The following represent a set of examples showing structure requirements.
Example 1
Example 2
struct { // size = 24 bytes, alignment = Quadword int a; double b; short c; };
Example 3
Example 4
转载于:https://www.cnblogs.com/xilentz/archive/2010/10/11/1847589.html