[单选题]

以下对结构体变量mix中成员x的正确引用是______。 struct { int t;int x; }mix,*p; p=&mix;

A.(*p).mix.x

B.(*p).x

C.p->mix.x

D.p.mix.x

参考答案与解析:

相关试题

若有以下结构体定义,则是正确的引用或定义。Struct example{int

[单选题]若有以下结构体定义,则是正确的引用或定义。 Struct example { int x; int y; }V1;A.example.x=10B.example V2.x=10C.structv2;v2x=10D.struct examplev2={10};

  • 查看答案
  • 若有以下结构体,则正确的定义或引用是()。structTest{int x;in

    [单选题]若有以下结构体,则正确的定义或引用是( )。 struct Test { int x; int y; }v1;A.Test.x=10;B.Test v2;v2.x=10;C.struct Test v2;v2.x=10;D.struct Test.v2=10;

  • 查看答案
  • 以下scanf函数调用语句中对结构体变量成员的引用不正确的是 struct pu

    [单选题]以下scanf函数调用语句中对结构体变量成员的引用不正确的是struct pupil{ char name[20];int ageint sex;} pup[5],*p;p=pup;A.scanf("%s",pup[0].name);B.scanf("%d",&pup[0].age);C.scanf("%dT",&(p->sex));D.scanf("%d",p->age);

  • 查看答案
  • 以下scanf函数调用语句中对结构体变量成员的引用不正确的是 struct pu

    [单选题]以下scanf函数调用语句中对结构体变量成员的引用不正确的是struct pupil{ char name[20];int ageint sex;} pup[5],*p;p=pup;A.scanf("%s",pup[0].name);B.scanf("%d",&pup[0].age);C.scanf("%dT",&(p->sex));D.scanf("%d",p->age);

  • 查看答案
  • 以下结构体类型说明和变量定义中正确的是A)typedef struct{int

    [单选题]以下结构体类型说明和变量定义中正确的是A.)typedef struct{int n; char c;} REC;REC t1,t2;B.)struct REC;{int n; char c;};REC t1,t2;C.)typedef struct REC ;{int n=0; char c='A';} t1,t2D.)struct{int n;char c;}REC;REC t1,t2;

  • 查看答案
  • 有以下结构体说明和变量定义,如图所示: struct node {int dat

    [单选题]有以下结构体说明和变量定义,如图所示: struct node {int data;struct node *next;} *p,*q,*r,现妥将q所指结点从链表中删除,同时要保持链表的连续,以下不能完成指定操作的语句是______。A.P->next=q->next;B.p->next=(p->next->next;C.p->next=rD.p=q->next;

  • 查看答案
  • 若有以下结构体定义,则______是正确的引用或定义。struct exampl

    [单选题]若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;A.example.x=10B.example v2.x=10C.example.x=10D.struct example v2={10};

  • 查看答案
  • 若有以下结构体定义,则_______是正确的引用或定义。struct examp

    [单选题]若有以下结构体定义,则_______是正确的引用或定义。 struct example { int x; int y; }v1;A.example.x=10B.example v2.x=10C.struct v2;v2.x=10D.struct example v2={10};

  • 查看答案
  • 若有以下结构体定义,则______是正确的引用或定义。struct exampl

    [单选题]若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;A.example.x=10B.example v2.x=10C.struct v2;v2.x=10D.struct example v2={10};

  • 查看答案
  • 若有以下定义: int x[10],* pt=x; 则对x数组元素的正确引用是(

    [单选题]若有以下定义:int x[10],* pt=x;则对x数组元素的正确引用是( )。A.pt+3B.}&x[10]C.*(pt+10)D.*(x+3)

  • 查看答案
  • 以下对结构体变量mix中成员x的正确引用是______。struct{ int