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

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

【单选题】以下程序的运行结果是。 typedef union {long a[2];int b[4];char c[8];}TY; TY our; main() {printf("%dn",sizeof(our)); }

A.32

B.16

C.8

D.24


参考答案和解析
C 解析:指针数组中的每一个元素都相当于一个指针变量。一维指针数组的定义形式为:类型名*数组名[数组长度],在本题main函数中定义指针数组d,它有两个元素,其初值分别是'ab'、'cde'的首地址。d[1]的值为'cde'的首地址。%x是指以十六进制数形式输出整数。
更多 “【单选题】以下程序的运行结果是。 typedef union {long a[2];int b[4];char c[8];}TY; TY our; main() {printf("%dn",sizeof(our)); }A.32B.16C.8D.24” 相关考题
考题 下列程序的输出结果是( )。 #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

考题 下面程序的输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

考题 以下程序的输出结果是()includemain(){struct stru{int a,b:char c[6];}:printf("%d\n 以下程序的输出结果是 ( ) #include<stdio.h> main() {struct stru{int a,b: char c[6]; }: printf("%d\n",sizeof(stru)), }A.2B.4C.8D.10

考题 下列程序的输出结果是( )。 #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

考题 下面程序和运行运行结果是【 】。typedef union student{ char name [10];long sno;char sex;float score [4];} STU;main ( ){ STU a[5];prinff( "% d\n", sizeof(a) );}

考题 下面程序的输出是______。 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 i; int k[5]; char c;} DATE;struct data { int cat; DATE cow; double dog;} too;DATE max;则语句 printf("%d",sizeof(struct date)+sizeof(max));的执行结果是:___52____

考题 下面程序的输出是______。 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

考题 以下程序的输出结果是【】。 include main() {struct stru {int a; float b; char d[4]; } 以下程序的输出结果是【 】。include<stdio.h>main(){ struct stru{ int a;float b;char d[4];};printf("%d\n",sizeof(struct stru));}

考题 设有以下说明和定义: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

考题 以下程序的输出结果是 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{ long i;int k[5];char c; } DATE;struct date{ int cat;DATE cow;double dog; }too;DATE max;则下列语句的执行结果是______。printf("%d",sizeof (struct date) +sizeof(max));A.26B.30C.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));}

考题 设有以下定义: typedef union {long i;int k[5];char c,}DATE, struct date {int cat;DATE cow;double dog;}too; DATE max; 则下列语句的执行结果是( ) printf("%d",stzeof(struct date)+sizeof(max));A.25B.30C.18D.8

考题 下面程序的输出结果是_______。 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

考题 设有以下定义: typedef union { longi; int k[5];char c;}DATE; srtuct date { int cat;DATEcow;double dog;} too; DATE max; 则下语句的执行结果是 ( ) printf("%d,"sizeof(struct date))+size of(max));A.25B.30C.18D.8

考题 以下程序的输出结果是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

考题 以下程序的输出结果是() 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

考题 下列程序段的输出是( ) 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));

考题 填空题以下程序段的输出结果是()。      union node      {int a;      float b;      Char C[10];};    printf(”%d”,sizeof(union node));

考题 单选题有以下程序#include main(){ char *p1 = 0;  int *p2 = 0; float *p3 = 0; printf(%d,%d,%d, sizeof(p1), sizeof(p2), sizeof(p3));}程序运行后的输出结果是(  )。A 4,4,4B 1,4,8C 0,0,0D 1,2,4