struct ord{int x;int y;int z;};struct ord a;
struct ord{int x;int y;int z;}struct ord a;
struct ord{int x;int y;int z;}a;
struct {int x;int y;int z;}a;
第1题:
设有以下语句:Typedef struct TT{char c; int a[4];}CIN;则下面叙述中错误的是( )。A.不可以用TT定义结构体变量B.TT是结构体标识名C.可以用CIN定义结构体变量D.CIN是struct TT类型的变量
第2题:
若有结构体定义:
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;
第3题:
A.UPDATE
B.ALTER
C.CREATE
D.DROP
第4题:
下面结构体的定义语句中,错误的是( )。
A.
B.
C.
D.
第5题:
下面结构体的定义语句中,错误的是( )。
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;
第6题:
设有以下说明语句
struct stu
{int a;
float b;
} stutype;
则下面的叙述不正确的是
A.struct是结构体类型的关键字
B.struct stu是用户定义的结构体类型
C.stutype是用户定义的结构体类型名
D.a和b都是结构体成员名
第7题:
下面结构体的定义语句中,错误的是( )。
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;
第8题:
下面结构体的定义语句中,错误的是
A)struct ord {int x;int y;int z;}; struct 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;
第9题:
A、chara[20]=”abcdefg”;
B、chara[]=”x+y= 55.”;
C、chara[15]={‘1′,’2’};
D、chara[10]=’5′;
第10题:
设有以下定义 int a=0; double b=1.25; char c='A'; #define d 2 则下面语句中错误的是
A.a++;
B.b++;
C.c++;
D.d++;