问题
单项选择题
有下列程序段: struct St {int x;int *y;)*pt; int a[]={1,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
解析:
有下列程序段: struct St {int x;int *y;)*pt; int a[]={1,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
解析: