单选

有如下程序段

#include "stdio.h"

typedef union

{  long x[2];

  int y[4];

  char z[8];

}atx;

typedef struct aa

{  long x[2];

int y[4];

char z[8];

} stx;

main()

{ printf("union=%d,struct aa=%d\n",sizeof(atx),sizeof(stx));}

则程序执行后输出的结果是

  • A.union=8,struct aa=8 
  • B.union=8,struct aa=24
  • C.union=24,struct aa=8 
  • D.union=24,struct aa=24
参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服