單項(xiàng)選擇題
設(shè)有以下說(shuō)明語(yǔ)句:
typedef struct stu
{ int a;
float b;
} stutype;
則下面敘述中錯(cuò)誤的是()
A.struct是結(jié)構(gòu)類(lèi)型的關(guān)鍵字
B.struct stu是用戶(hù)定義的結(jié)構(gòu)類(lèi)型
C.a和b都是結(jié)構(gòu)成員名
D.stutype是用戶(hù)定義的結(jié)構(gòu)體變量名
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題
設(shè)有如下定義:
struck sk
{ int a;
float b;
}data;
int *p;
若要使P指向data中的a域,正確的賦值語(yǔ)句是()
A. p=&a;
B. p=data.a;
C. p=&data.a;
D.*p=data.a;
2.單項(xiàng)選擇題
以下對(duì)結(jié)構(gòu)變量stul中成員age的非法引用是()
struct student
{ int age;
int num;
}stu1,*p;
p=&stu1;
A. stu1.age
B. student.age
C. p->age
D. (*p).age