A-A+

若有以下程序段: struct st {int n; int*m: }; int a=2 b

2022-08-05 21:21:31 问答库 阅读 172 次

问题详情

若有以下程序段: struct st {int n; int*m: }; int a=2,b=3,c=5; struct st s[3]=({101,&a},{102,&c},{103,&B)}; main() {struct st*p; p=s; } 则以下表达式中值为5的是()。
A.(*p).m
B.*(p+1)->m
C.*(p++)->n
D.(p++)(*m)请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:B

考点:程序