[单选题]

若有以下程序段: 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++)->m

C.(*p).m

D.*(++p)->m

参考答案与解析:

相关试题

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

[单选题]若有以下程序段: 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).mB.*(p+1)->mC.*(p++)->nD.(p++)(*m)

  • 查看答案
  • 有以下程序段struct st{int x;int *y;)*pt;int a[

    [单选题]有以下程序段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->yB.)pt->xC.)++pt->xD.)(pt++)->x

  • 查看答案
  • 有以下程序段 struct st {int x;int *y;}*pt; int

    [单选题]有以下程序段 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->yB.pt->xC.++pt->xD.(pt++)->x

  • 查看答案
  • 设有以下程序: struct st{int n;struct st *next;

    [单选题]设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,&a[1],7,&设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'/0'},*p; p=&a [0]; 下面选项中,表达式值为6的是______。A.p++->nB.p->n++C.(*p).n++D

  • 查看答案
  • 设有以下程序:struct st{int n;struct st*next;};

    [单选题]设有以下程序: struct st{int n;struct st*next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'/0/},*p; p=&a[0];下面其值为6的表达式为______。A.p++->nB.p->n++C.(*p).n++D.++p->n

  • 查看答案
  • 有以下程序段:struct st{ int x; int * y; } * pt

    [单选题]有以下程序段: 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->yB.pt->xC.++pt->xD.(pt++)->x

  • 查看答案
  • 有下列程序段: struct st {int x;int*y;}*pt; int

    [单选题]有下列程序段:struct st{int x;int*y;}*pt;int a[]={1,2},b[]={3,4};stmct st c[2]={10,a,20,b};pt=c;下列选项中表达式的值为11的是( )。A.*pt->yB.pt->xC.++pt->xD.(pt++)->X

  • 查看答案
  • 有下列程序段:struct st{int x;int *y;}*pt;int a

    [单选题]有下列程序段: 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->yB.pt->xC.++pt->xD.(pt++)->X

  • 查看答案
  • 若有以下说明和语句:struct st{int n;char * ch;};st

    [单选题]若有以下说明和语句: struct st{int n;char * ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是 ______。A.p++->nB.p->n++C.(*p).n++D.++p->n

  • 查看答案
  • 有下列程序段:struct st{intx;int*y;}*pt;int a[]

    [单选题]有下列程序段: struct st {intx;int*y;}*pt; int a[]={1,2},b[]={3,4}; struct st c[2]={10,a,20,b}; pt=c; 下列选项中表达式的值为11的是( )。A.*pt->yB.pt->xC.++pt->xD.(pt++)->x

  • 查看答案
  • 若有以下程序段:struct st{int n;int*m;};int a=2,