【无标题】

struct data{    char t1;      1字节

     char t2;               1字节

   unsigned short t3;     2字节   空4字节

 unsigned long t4;   };     8字节

最大类型为8的整数倍    一共16字节

struct data{    char t1;    1字节     空3字节

 int t2;      4字节

   short t3; }; 2字节

最大类型为4的整数倍     12字节

struct s1 { char c1;  1字节   空3字节

int i;   4字节   

char c2;     };1字节  空3字节

最大类型为4   12字节

struct s2 { char c1;   1字节

char c2;      1字节    空2字节

int i;     };       4字节

最大类型为4      8字节

typedef struct Test { short a;           2字节  空6字节

struct { int b;               4字节空4字节

  double c;               8字节

  char d;   }              1字节   空7字节

p;        24字节

int e;      4字节

4  }Test;       4字节    40

         

typedef struct Test { short a;     2字节空6字节

struct { int b;        4字节 空4字节

double c[10];       80字节

char d; };         1字节空7字节

int e;   }Test;       4字节

最大类型为8字节       112字节

struct C{    char  b;         1字节   空3字节

     int   a;  4字节

     short c;     };   2字节

       最大类型为4字节     12字节 

struct C {      char a;   1字节

   char b[3];       3字节

   char c;   };       1字节

最大类型为1字节      5字节

typedef struct {    int b;     4字节

     char a;         1字节空3字节

     long e;          8字节

 char c;    1字节  空3字节

     float d;       4字节

   double t;       8字节

}node;       最大类型为8字节    32字节

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值