网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
若有以下说明和定义
union dt
{ int a; char b; double c;}data;
以下叙述中错误的是
A.data的每个成员起始地址都相同
B.变量data所占内存字节数与成员c所占字节数相等
C.程序段:data.a=5;printf("%f\n",data.C);输出结果为5.000000
D.data可以作为函数的实参
参考答案
更多 “ 若有以下说明和定义union dt{ int a; char b; double c;}data;以下叙述中错误的是A.data的每个成员起始地址都相同B.变量data所占内存字节数与成员c所占字节数相等C.程序段:data.a=5;printf("%f\n",data.C);输出结果为5.000000D.data可以作为函数的实参 ” 相关考题
考题
若有以下定义和语句union data{ int i; char c; float f; } x;int y;则以下语句正确的是A)x=10.5;B)x.c=101;C)y=x;D)printf("%d\n",x);
考题
若有以下说明和定义语句,则变量w在内存中所占的字节数是 【19】 。union aa {float x; float y; char c[6]; };struct st{ union aa v; float w[5]; double ave; } w;
考题
若有以下说明和定义,以下叙述中错误的是( )。union dt{ int a;char b;double c;}data;A.两个共用体变量之间可以相互赋值B.变量data所占内存字节数与成员c所占字节数相等C.程序段:data.a=5;printf("%f\n",data.c);输出结果为5.000000D.共用体在初始化时只能用第一个成员的类型进行初始化
考题
若有以下说明和定义 union dt {int a;char b;double c;}data; 以下叙述中错误的是A.data的每个成员起始地址都相同B.变量data所占内存字节数与成员c所占字节数相等C.程序段:data.a=5;printf("%f\n",data.c);输出结果为5.000000D.data可以作为函数的实参
考题
若有以下定义和语句 union date { int i; char c; fioat f;} x; int y; 则以下语句正确的是______。A.x=10.5;B.x.c=101;C.y=x;D.printf("%d\n",x);
考题
若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。A.floatB.intC.charD.double
考题
设有以下说明和定义: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____
考题
若有下面的说明和定义,则sizeof(struct aa) 的值是 struct aa { int rl;double r2;float r3; union uu {char ul [5];long u2[2]}ua; }mya;A.30B.29C.24D.22
考题
若有下面的说明和定义,则sizeof(struct aa)的值是______。 struct aa { int r1;double r2;float r3; union uu{char ul[5]long u2[2]}ua; }mya;A.30B.29C.24D.22
考题
设有以下说明和定义: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
考题
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatSX
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatB.intC.charD.double
考题
若有以下说明和定义 union dt {int a;char b;double c;}data; 以下叙述中错误的是 ______。A.data的每个成员起始地址都相同B.变量data所占的内存字节数与成员c所占字节数相等C.程序段data.a=5;printf("%f\n",data.c);输出结果为5.000000D.data可以作为函数的实参
考题
union dt { int a;char b;double c; }data; 以下叙述中错误的是( )。A.data的每个成员起始地址都相同B.变量data所占内存字节数与成员c所占字节数相等C.程序段:data.a=5;printf("%f\n",data. C);输出结果为5.0D.data可以作为函数的实参
考题
设有以下说明和定义: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
考题
若有下面的说明和定义,则sizeof(struct aa)的值是( )。 struct aa { int r1; double r2; float r3; union uu{char u1[5];long u2[2];}ua; } mya;A.30B.29C.24D.22
考题
若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. float SXB
若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. floatB.intC.charD.double
考题
若有如下定义和声明: struct s { int m;char ch;double x; union t {char a[6];int b[3];}tt;}ss; 则sizeof(struets)的值是( )A.6B.14C.17D.20
考题
若有下面的说明和定义: union un { char s[10]; long d[3]; }ua; struet std { char c[10];double d;int a; union un vb; }a;则printf("%d\n", sizeof(struct std)+sizeof(union un));输出的值为______。A.34B.52C.54D.64
考题
单选题若有以下程序:
typedef struct S
{int g;char h;}T;
以下叙述中正确的是( )。A
可用S定义结构体变量B
可用T定义结构体变量C
S是struct类型的变量D
T是struct S类型的变量
热门标签
最新试卷