65,210
社区成员
发帖
与我相关
我的任务
分享#include <iostream>
using namespace std;
#pragma pack(1)
typedef struct
{
int i;char c; char str[4];
}S;
void main()
{
S s;
cout<<sizeof(s)<<endl; //输出9
}#include <iostream>
using namespace std;
#pragma pack(1)
typedef struct
{
int i;char c; char str[4];
}S;
void main()
{
S s;
cout<<sizeof(s)<<endl; //输出9
}