结构体的sizeof字节对齐问题

来源:互联网 发布:混沌与秩序ol数据库 编辑:程序博客网 时间:2024/04/25 09:25

#include <stdio.h>

struct sun  

{

  double a;

  int b[5];

  char   c;

stu;


void main()

{

  int sizeof(stu);

  printf("%d\n",s);

}

运行结果:32

 
原创粉丝点击