#include<iostream>
using namespace std;
struct s1
{
int i;
short a;
char c;
};
struct s2
{
char c;
int i;
short a;
};
int main()
{
cout<<"The size s1 is "<<sizeof( s1)<<endl;
cout<<"THe size s2 is "<<sizeof( s2)<<endl;
return 0;
}
输出结果如图: