有以下程序段struct st{int x;int *y;)*pt;int a[]={l,2},b[]={3,4};struct st c[2]={10,a,2
有以下程序段
struct st
{int x;int *y;)*pt;
int a[]={l,2},b[]={3,4};
struct st c[2]={10,a,20,b};
pt=c;
以下选项中表达式的值为 11 的是
A)*pt->y
B)pt->x
C)++pt->x
D)(pt++)->x
正确答案:C(26)C) 解析 : -> 的运算优先级比 ++ 高 , 此时 ,pt->=10, 执行自加运算后为 11 。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。