[单选题]

设有以下语句: 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++->n

B.p->n++

C.(*p).n++

D.++p->n

参考答案与解析:

相关试题

设有以下程序: 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 n;struct st * nex

    [单选题]设有以下语句 ( ) 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 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{int n;char *ch;};str

    [单选题]若有以下说明和语句: 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{int n;char*ch;}struc

    [单选题]若有以下说明和语句: 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.#NAME?

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

    [单选题]若有以下说明和语句: 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{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 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++)->mC.(*p).mD.*(++p)->m

  • 查看答案
  • 设有以下说明语句 typedef struct { int n; char ch

    [单选题]设有以下说明语句typedef struct{ int n;char ch[8];} PER;则下面叙述中正确的是A.PER 是结构体变量名B.PER是结构体类型名C.typedef struct 是结构体类型D.struct 是结构体类型名

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