struct st{int x;int*y;}*p;inta[]={1,2},b[]={3,4};struct st c

struct st{int x;int*y;}*p;inta[]={1,2},b[]={3,4};struct st c[2]={10,a,20,b};pt=c;
以下选项中表达式的值为11的是:
A.*p->y B.pt->x C.++pt->x D.(pt++)->x
ww之叶 1年前 已收到1个回答 举报

haly_cn 春芽

共回答了21个问题采纳率:90.5% 举报

答案为c
pt->x=10;
++pt->x=11;

1年前 追问

7

ww之叶 举报

为什么pt->x=10,而不是等于20呢

举报 haly_cn

pt此时指向c[2]这个数组中的的第一个
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.090 s. - webmaster@yulucn.com