字节序对其的 问题 实验源码

来源:互联网 发布:被西瓜 网络用语 编辑:程序博客网 时间:2024/05/16 19:29
#include<stdio.h>
#pragma pack (2)
typedef struct a
{
int b; //4
char c; //1
short d;//2
float e;//4
char f; //1
} st;


int main()
{
st s;
printf("%d",sizeof(s));


}
0 0
原创粉丝点击