![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[主观题]
若有以下定义和语句union data{ int i; char c; float f; } x;int y;则以下语句正确的是A)x
若有以下定义和语句
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);
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
若有以下定义和语句
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);
A.p=a;
B.p[0]=a;
C.p[o]=&a[1][2];
D.p[1]=&a;
A.p=S;
B.p=k;
C.p=s[0];
D.k=s;
A.*q=0;
B.w=p;
C.*p=a;
D.*p=*w;
A.语句有错误
B.z=34
C.z=70
D.z无定值
A.*p
B.a[10]
C.*a
D.a[p-a]
A.*p
B.a[10]
C.*a
D.a[p-a]