网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

【单选题】若有结构类型定义如下: struct bd { int x; float y; }r,*p=&r; 那么,对r中的成员x的正确引用是

A.(*p).r.x

B.(*p).x

C.p->r.x

D.p.r.x


参考答案和解析
B
更多 “【单选题】若有结构类型定义如下: struct bd { int x; float y; }r,*p=r; 那么,对r中的成员x的正确引用是A.(*p).r.xB.(*p).xC.p->r.xD.p.r.x” 相关考题
考题 若有如下函数模板定义,则正确使用该函数模板的语句是( )。templatevoid add(type a, type b, type 和c){ c=a+b ; } A.float x,y,z;add(x,y,z) ;B.int x,y,z;add(x,y,和z) ;C.float x,y ;int z;add(x,y,z) ;D.float x,y ;int z;add(x,y,和z) ;

考题 设有以下说明语句struct ex{ int x ; float y; char z ;} example;则下面的叙述中不正确的是A.struct结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struct ex是结构体类型名

考题 下列语句段中,正确的是( )。A.struct{int x;float y;int a[2];unsigned b[3];char name[10];};B.struct stu{unsigned a[3];unsigned b[4];}x;int*p=x.a;C.struct stu{int a;float x[4];}y={1,1.0};float data=y.x;D.struct nd{int a,b;unsigned c[2]=5;};

考题 已知有如下结构体:struct sk{ int a;float b;}data,*p;若有P=data,则对data的成员a引用正确的是( )。A.(*p).data.aB.(*p).a;C.p->data.aD.p.data.a

考题 已知有结构体: struct sk { int a; float b; }data,*p; 若有p=data,则对data的成员a的正确引用是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、z都是结构体成员名D.struct str是结构体类型名

考题 有如下类定义:class Point{public:Point(int xx=0,int yy=0):x(xx),y(yy) { }private:int x,y;};class Circle:public Point{public:Circle(int r):radius(r) { }private:int radius;};派生类Circle中数据成员的个数是( )。A、3B、1C、5D、2

考题 已知有结构体: struct sk { int a; float b; }data,*p; 若有p=data,则对data的成员a的正确引用是( )。A.(*p).data.aB.(*p).a;C.p->data.aD.p.data.a

考题 已知有如下结构体:struct sk{ int a; float b; }data,*p;若有P=data,则对data的成员a引用正确的是( )。A.(*p).data.aB.(*p).a;C.p-data.aD.p.data.a

考题 若某C语句如下: struct ex {int x;float y;char z;}example; 则以下叙述中不正确的是(29)。A.struct结构体类型的关键字B.x,y,z都是结构体成员名C.stmct ex是结构体类型D.example是结构体类型名

考题 有如下程序:includeint func(int a,int b){return(a+b):}main(){int x=2,y=5,z=8,r; r 有如下程序: #include <stdio.h> int func(int a,int b) { return(a+b):} main() { int x=2,y=5,z=8,r; r=func(func(x,y),z); printf("%d\n",r); } 该程序的输出结果是( )。A.12B.13C.14D.15

考题 若有程序: fun(int a,int b) { static int c=0; c+=a+b: return c; } main() { int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf("%d\n",r); } 上面程序的输出结果是______。A.23B.15C.19D.18

考题 若有程序 fun(int a,int b) { static int c=0 c+=a+b; retum c; } main () { int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf("%d\n",r); } 上面程序的输出结果______。A.23B.15C.19D.18

考题 若有下面的说明和定义,则sizeof(struct aa)的值是______。 struct aa { int r1;double r2;float r3; union uu{char ul[5]long u2[2]}ua; }mya;A.30B.29C.24D.22

考题 以下对结构体变量mix中成员x的正确引用是______。 struct { int t;int x; }mix,*p; p=mix;A.(*p).mix.xB.(*p).xC.p->mix.xD.p.mix.x

考题 若有如下语句: struct a { char x[10] int y; }s,*t; t=S; 则对结构体变量s中的成员y的正确引用是( )。A.a.y;B.t->y;C.t.y;D.*t->y;

考题 设有以下C语言说明语句:struct ex{int x;float y;char z;} example则下面的叙述中不正确的是(52)。A.struct是结构体类型的关键字B.x、y、z都是结构体成员名C.struet ex是结构体类型D.example是结构体类型名

考题 设有下列说明语句: strcut str {int x; float y; char z;}st; 则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、x都是结构体成员名D.struct str是结构体类型名

考题 以下程序的输出结果是include "stdio.h"int *f(int *x,int *y){ if(*x*y) return x; else return y;}main(){ int a=7,b=8, *p,*q,*r ; p=a; q=b; r= f(p,q); printf("%d,%d,%d\n",*p,*q,*r);}

考题 设有以下说明语句: struct ex {int x;float y;char z; }example;在下面的叙述中,不正确的一条是______。A.struct是结构体类型的关键词B.example是结构体类型名C.x,y,2都是结构体成员名D.struct ex是结构体类型

考题 设有以下声明语句 street ex { int x;float y;char z;} example; 则下面的叙述中不正确的是 ______ 。A.struct是结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struct ex是结构体类型

考题 若有下面的说明和定义,则sizeof(struct aa)的值是( )。 struct aa { int r1; double r2; float r3; union uu{char u1[5];long u2[2];}ua; } mya;A.30B.29C.24D.22

考题 设有下列说明语句:strcut str{int x;float y;char z;}st;则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、z都是结构体成员名D.struct str是结构体类型名

考题 下列语句段中,正确的是( )。A.street { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p= x.a;C.stmct stu { int a; float x[4]; }y={1,1.0}; float data=y.x;D.struct nd { int a,b; unsigned c[2]=5; };

考题 设有如下定义: struct sk { int a;float b;}data,* p; 若有p= data;,则对data中的a域的正确引用是 ( )A.(* p).dataB.(* p).aC.p->dataD.p.data. a

考题 下列语句段中,正确的是( )。A.struct { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p= x.a;C.street stu { int a; float x[4]; }y={1,1.0}; float data=y.x;D.struct nd {int a,b; unsigned c[2]=5; };

考题 若有程序fun(int a, int b){ static int c=0; c+=a+ b; returm c;}main(){ int x=5,y=3,z=7,r; r=fun((y, x+ y),z); r=fun (x, y); printf("%d\n", r);}A.23B.15C.19D.18

考题 若有如下定义:  struct sk{      int a;  int b;  }data,*p=data;  则对data中的成员x的正确引用的是()。 A、(*p).aB、(*p).data.aC、p-data.aD、p.data.a

考题 单选题若有如下定义:  struct sk{      int a;  int b;  }data,*p=data;  则对data中的成员x的正确引用的是()。A (*p).aB (*p).data.aC p-data.aD p.data.a