网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
【填空题】以下程序输出的结果是 。 typedef union{long x[2];int y[4];char z[8];}MYTYPE; MYTYPE them; void main() { printf(“%dn”,sizeof(them)); }
参考答案和解析
float bool
更多 “【填空题】以下程序输出的结果是 。 typedef union{long x[2];int y[4];char z[8];}MYTYPE; MYTYPE them; void main() { printf(“%dn”,sizeof(them)); }” 相关考题
考题
下列程序的输出结果是( )。 #include "stdio.h" main() { struct st { int y,x,z;}; union {long i;int j; char k;} un; printf("%d,%d\n",sizeo(struct st),sizeof(un)); }A.6,2B.6,4C.8,4D.8,6
考题
下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main()
下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5
考题
下面程序的输m结果是( )。 typedef union {double x[3]; int y[4]; char z[10]; }M; M t; main() { Printf("%d\n",sizeof(t));}A.32B.26C.24D.4
考题
下面程序的输出是()typedefunion{longx;inty;charz;}MYTYPE;MYTYPEthem;main(){printf("%d\n",sizeof(them));}。
A.32B.16C.8D.4
考题
下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int
下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5
考题
下列程序的输出结果是( )。 #includestdio.h main { struct st { int y,x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un)) }A.6,2B.6,4C.8,4D.8,6
考题
以下程序的输出结果是( )。 main {int x=0.5;char z=a; printf("%d\n",(x2));}A.0S
以下程序的输出结果是( )。 main {int x=0.5;char z=a; printf("%d\n",(x&1)&&(z2));}A.0B.1C.2D.3
考题
下面程序的输出是______。 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
考题
下列程序的输出结果是()。includemain(){struct st{int y,x,z;};union{long i; int j;
下列程序的输出结果是( )。 #include<stdio.h> main() { struct st { int y,x,z; }; union { long i; int j; char k; }un; printf("%d,%d\n",sizeof(struct st),sizeof(un)); }A.6,2B.6,4C.8,4D.8,6
考题
下列程序的输出结果是()。 include main() {stmct st {int y,x,z; }; union {long i; i
下列程序的输出结果是( )。#include<stdio.h>main(){ stmct st{ int y,x,z;};union{ long i;int j;char k;}un;printf("%d,%d\n",sizeof(stmct st),sizeof(un));}A.6,2B.6,4C.8,4D.8,6
考题
下面程序的输出是______。 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 main() { struct st { int y,x,z; }; union {long
下列程序的输出结果是( )。 #include <stdio.h> main() { struct st { int y,x,z; }; union { long i; int j; char k; } un; printf("%d,%d\n",sizeof(struct st),sizeof(un)); }A.6, 2B.6, 4C.8, 4D.8, 6
考题
设有以下说明和定义:includeVoid main() {typedef union{long i; int k[5]; char
设有以下说明和定义:#include<iostream. h>Void main() {typedef union{long i; int k[5]; char c;}DATE;struct date{iNt cat; DATE cow; double. dog;}too;DATE max;则下列语句的执行结果是( )。cout<<(sizeof(struct date)+sizeof(max))<<end1;}A.26B.52C.18D.8
考题
下面程序的输出结果是( )。 typedefunion {long x[1]; int y[4]; char z[10]; }M; M t; main() {printf("%d\n",sizeof(t)); }A.32B.26C.10D.4
考题
以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }A.0B.4C.10D.无定值
考题
以下程序的输出结果是 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
考题
设有以下说明和定义:includeVoid main() {typedef union{long i; int k[5]; char
设有以下说明和定义: #include<iostream. h> Void main() { typedef union { long i; int k[5]; char c; } DATE; struct date {int cat; DATE cow; double dog; }too; DATE max; cout<<(sizeof(struct date)+sizeof(max))<<end1;}A.26B.52C.18D.8
考题
下面程序的运行结果是typedef union student{ char name[10]; long sno; char sex; float score[4];}STU;main(){ STU a[5]; printf("%d\n",sizeof(a));}
考题
下面程序的输出结果是_______。 union un { int a[4]; long b; char c[6];} main() { union un u; printf("%d%d",sizeof(u),sizeof(uA) ); }A.82B.88C.188D.182
考题
下面程序的输出是_______。 typedefunion { longx[2]; int y[4]; char z[8]; }MYTYPE; MYTYPEthem; main() { printf("%d\n",sizeof(them));}A.32B.16C.8D.24
考题
以下程序的输出结果是includemain(){ union un{ int i;long k;char c;};struct byte{i
以下程序的输出结果是 #include<stdio.h> main() { union un{ int i; long k; char c;}; struct byte{ int a; long b; union un c;}r; printf("%d\n",sizeof(r));}A.10B.13C.7D.8
考题
下列程序的执行结果是______。include union {int i;char c[2]; }; void main() {union
下列程序的执行结果是______。 #include<stdio.h> union { int i; char c[2]; }; void main() { union un x; x.c[0]=10; x.c[1]=1; printf("\n%d",x.i); }A.266B.11C.265D.138
考题
以下程序的输出结果是() includemain(){ union un{int i; long k; char c;};struct by
以下程序的输出结果是( ) # include<stdio.h> main() { union un{int i; long k; char c; }; struct byte{ int a; long b; union un c; } r; printf("%d\n",sizeof(r)); }A.10B.13C.7D.8
考题
有以下程序:includefun(int x,int y,int z){z=x*y;}main(){int a=4,b=2,c=6; fun(a,b,
有以下程序: #include <stdio.h> fun(int x,int y,int z) { z=x*y;} main() { int a=4,b=2,c=6; fun(a,b,c); printf("%d",c); } 程序运行后的输出结果是( )。A.16B.6C.8D.12
考题
下列程序段的输出是( ) typedef union{ long x[2]; short y[4][5]; char z[10]; }TYPE1; TYPE1 u1; printf("%d\n", sizeof(u1));A.8B.10C.40D.58
考题
填空题以下程序段的输出结果是()。 union node {int a; float b; Char C[10];}; printf(”%d”,sizeof(union node));
热门标签
最新试卷