32位系统中,系统会以 4 为单位进行字节对齐。
/**
*Copyright @ 2019 Zhang Peng. All Right Reserved.
*Filename:
*Author: Zhang Peng
*Date:
*Version:
*Description:
**/
#include<iostream>
using namespace std;
struct s1
{
char a;
char b[3];
int c;
};
struct s2
{
char a;
int c;
char b[3];
};
struct s3