[单选题]

有以下程序段 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

参考答案与解析:

相关试题

有以下程序段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

    [单选题]有以下程序段: 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{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 x;int*y;}*p;int

    [单选题]以下程序的输出是( )。 struct st { int x;int*y; } *p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],}; main() { p=aa; cout<+<+(p->x); }A.10B.11C.51D.60

  • 查看答案
  • 以下程序的输出是()。struct st{int x;int *y;} *p;

    [单选题]以下程序的输出是( )。 struct st { int x;int *y; } *p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],}; main() { p=aa; cout<+<+(p->x); }A.10B.11C.51D.60

  • 查看答案
  • 有以下程序 #include struct st { int x,y;} da

    [单选题]有以下程序 include struct st { int x,y;} data[2]={1,10,2,20}; main(有以下程序 #include <stdio.h> struct st { int x,y;} data[2]={1,10,2,20}; main() { struct st *p=data; printf("%d,",p->y); printf("%d/n",(++p)->x); } 程序的运行结果是______。A.10,1B.20,1C.10,2D.20,2

  • 查看答案
  • 有以下程序 #include struct st { int x,y;} da

    [单选题]有以下程序 include struct st { int x,y;} data[2]={1,10,2,20}; main(有以下程序 #include <stdio.h> struct st { int x,y;} data[2]={1,10,2,20}; main() { struct st *p=data; printf("%d,",p->y); printf("%d/n",(++p)->x); } 程序的运行结果是______。A.10,1B.20,1C.10,2D.20,2

  • 查看答案
  • 以下程序的输出结果是() struct st {int x;int * y;}*

    [单选题]以下程序的输出结果是 ( ) struct st { int x; int * y;} * p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,& dt[0],60 &dt[0],60,&dt [0]}; main( ) { p=aa; printf("%d/n",+ +(p->x)); }A.10B.11C.51D.60

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