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

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

下列对结构及其变量定义错误的是( )。

A.struct My Struct { int num; char ch; }

B.struct MyStruct { int num; char ch; }My;

C.strut { int num; char ch; }My;

D.struct { int num; char ch; };


参考答案

更多 “ 下列对结构及其变量定义错误的是( )。A.struct My Struct { int num; char ch; }B.struct MyStruct { int num; char ch; }My;C.strut { int num; char ch; }My;D.struct { int num; char ch; }; ” 相关考题
考题 设有以下说明语句struct stu{int a;float b;} stutype;则下面的叙述不正确的是A.struct是结构体类型的关键字B.struct stu是用户定义的结构体类型C.stutype是用户定义的结构体类型名D.a和b都是结构体成员名

考题 下列语句段中,正确的是( )。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 stu {int num;char sex;int age;}a1,a2;则下列语句中错误的是( )。A.printf("%d%c,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;

考题 下列说法错误的是( )。A.下列结构体定义时,占据了5个字节的空间 struct student “nt num; int age; char sex; }B.结构体的成员名可以与程序中的变量名相同C.对结构体中的成员可以单独使用,它的作用相当于普通变量D.结构体可以嵌套定义

考题 设有以下说明语句 struct num { int a; float b; }numl;则下面的叙述不正确的是______。A.struct是结构体类型的关键字B.struct num是用户定义的结构体类型C.numl是用户定义的结构体类型名D.a和b都是结构体成员名

考题 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int y;int z;};struct ord a;B.struct ord{int x;int y;int z;};ord a;C.struct ord{int x;int y;int z;}a;D.struct{int x;int y;int z;}a;

考题 下面结构体的定义语句中,错误的是( )。 A.struct ord{int x;int Y;int Z;};struet ord a;SXB 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int Y;int Z;};struet ord a;B.struct ord{int x;int y;int Z;}struct ord a;C.struct ord{int X;int Y;int Z;}a;D.struct{int X;int y;int Z;}a;

考题 struct{int num;float scor;}student;struct student std1;是对结构体类型的变量student的定义。() 此题为判断题(对,错)。

考题 以下选项中不能正确把cl定义成结构体变量的是A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; }C.struct color { int red; int green; int blue; } cl;D.struct { int red; int green; int blue; } cl;

考题 下列对结构及其变量定义错误的是( )。A.struct My StructB.struct MyStruct{ {int num; int num;char ch; char ch;} }My;C.strutD.struct{ {int num; int num;char ch; char ch;}My; };

考题 有以下定义和语句: struct students {int num;char name[20];char c; struct {int grade1;int grade2;}s; }; struct students w,*pw; *pw=w; 下列赋值语句不正确的是( )。A.w.num=1002;B.w.grade1=85;C.pw->num=1002;D.w.s.grade2=85;

考题 设有以下语句: struct SS { int no; char name[10];}PERSON; 则下面叙述中错误的是 ( )A.struct是结构体类型的关键字B.struct SS是结构体类型C.PERSON是结构体类型名D.name是结构体成员名

考题 下列说法错误的是( )。A.下列结构体定义时,占据了5个字节的空间 struct student {int num; int age; char sex; }B.结构体的成员名可以与程序中的变量名相同C.对结构体中的成员可以单独使用,它的作用相当于普通变量D.结构体可以嵌套定义

考题 以下选项中,能定义s为合法的结构体变量的是( )。A.typedef struct abc { double a; char b[10]; } s;B.struct { double a; char b[10]; }s;C.struct ABC { double a; char b[10]; } ABC s;D.typedef ABC { double a; char b[10]; } ABC s;

考题 下列结构体类型说明和变量定义中正确的是( )。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,t2;D.stmct { int n; char c;} REC; REC t1,t2;

考题 若有结构体定义:struct stu{int num;char sex;int age;}al,a2;则下列语句中错误的是( )。A.printf("%d,%C,%d",a1);B.a2.age=a1.age;C.a1.age++;D.a1.num=5;

考题 若有以下结构类型说明和变量定义,则变量a在内存中所占字节数是struct stud{ char num[6]; int s[4]; double ave;}a,*p;

考题 有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是A.(p++)-num B.p-num C.(*p).num D.stu[3].age

考题 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int Y;int z;}struct ord a;B.struct ord{int x;im Y;im z;};struct ord a;C.struct ord{int x;int Y;int Z;}a;D.struct{int x;int Y;int z;}a;

考题 以下选项中,能定义s为合法的结构件变量的是_______。A.typedef struct abc { double a; char b[10]; }s;B.struct { double a; char b[10]; }sC.struct ABC { double a; char b[10]; } ABCs;D.typedef ABC { double a; char b[10]; } ABCs;

考题 下列关于结构型变量的定义语句中,错误的是( )A.typedef struct CCCB.define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc;C.structD.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc;

考题 下列语句段中,正确的是( )。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; };

考题 以下对结构体类型变量td的定义中,错误的是( )。A.typcdef struct aa { int n; float m; } AA; AA td;B.struct aa {int n; float m; } struct aa td;C.struct {int n; float m; } aa; struct aa td;D.struct {int n; float m; }td;

考题 以下对结构体类型变量td的定义中,错误的是( )。A.typedef struct aa { int n; float m; }AA; AA td;B.struct aa { int n; float m; }td; stmct aa td;C.stmct { int n; float m; }aa; stmct aa td;D.struct { int n; float m; }td;

考题 设有以下结构类型说明和变量定义,则变量a在内存所占字节数是().   struct stud { char num[8]; int s[4]; double ave; } a,*p; 

考题 单选题有如下定义:struct{  int num;  char name[10];  struct {  int y;  int m;  int d; }birth; }s,*ps=s;以下对内嵌结构体成员的引用形式错误的是(  )。A ps.birth.yB s.birth.yC ps-birth.yD (*ps).birth.y

考题 填空题设有以下结构类型说明和变量定义,则变量a在内存所占字节数是().   struct stud { char num[8]; int s[4]; double ave; } a,*p;