网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序的输出是_______。 typedefunion { longx[2]; int y[4]; char z[8]; }MYTYPE; MYTYPEthem; main() { printf("%d\n",sizeof(them));}

A.32

B.16

C.8

D.24


参考答案

更多 “ 下面程序的输出是_______。 typedefunion { longx[2]; int y[4]; char z[8]; }MYTYPE; MYTYPEthem; main() { printf("%d\n",sizeof(them));}A.32B.16C.8D.24 ” 相关考题
考题 阅读下面程序,则在执行时候的输出为 【8】 。#include "stdio.h"main(){int x=1,y=2,z=0;if(x=2)z=x,x=y,y=z;printf("%d,%d\n",x,y);}

考题 下面程序的输出是()typedefunion{longx;inty;charz;}MYTYPE;MYTYPEthem;main(){printf("%d\n",sizeof(them));}。 A.32B.16C.8D.4

考题 下面程序的输出是______。 typedef union { long x[2]; int y[4]; char z[8]; }MYTYPE; MYTYPE them; mare() { printf("%d\n",sizeof(them));}A.32B.16C.8D.24

考题 下面程序的输出结果是() include main( ) { int i,a[ ]={2,4,6,8}; int * p=a; 下面程序的输出结果是 ( ) # include<stdio.h> main( ) { int i,a[ ]={2,4,6,8}; int * p=a; for(i=0;i<4;i+ +)a[i]=* p+ +; printf(*%d\n",a[2]); }A.6B.8C.4D.2

考题 下面程序的输出是______。 typedef union { long x[2]; int y[4]; char z[8]; }MYTYPE; MYTYPE them; main() { printf("%d\n",sizeof(them));}A.32B.16C.8D.24

考题 下面程序的输出结果是( )。 typedefunion {long x[1]; int y[4]; char z[10]; }M; M t; main() {printf("%d\n",sizeof(t)); }A.32B.26C.10D.4

考题 以下程序的输出结果是 typedef union{long x[2] int y[4]; char z[8]; } MYTYPE; MYTYPE them; main() { printf("%d\n",sizeof(them));}A.32B.16C.8D.24

考题 有如下程序段#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=24C.union=24,struct aa=8 D.union=24,struct aa=24

考题 【填空题】以下程序输出的结果是 。 typedef union{long x[2];int y[4];char z[8];}MYTYPE; MYTYPE them; void main() { printf(“%dn”,sizeof(them)); }