單項(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
您可能感興趣的試卷
你可能感興趣的試題
1.單項(xiàng)選擇題
若有以下說明語句:
struct date
{ int year;
int month;
int day;
}brithday;
則下面的敘述不正確的是().
A. struct是聲明結(jié)構(gòu)體類型時(shí)用的關(guān)鍵字
B. struct date 是用戶定義的結(jié)構(gòu)體類型名
C. brithday是用戶定義的結(jié)構(gòu)體類型名
D. year,day 都是結(jié)構(gòu)體成員名
2.單項(xiàng)選擇題
若有以下說明語句:
struct student
{ int num;
char name[ ];
float score;
}stu;
則下面的敘述不正確的是()
A. struct是結(jié)構(gòu)體類型的關(guān)鍵字
B. struct student 是用戶定義的結(jié)構(gòu)體類型
C. num, score都是結(jié)構(gòu)體成員名
D. stu是用戶定義的結(jié)構(gòu)體類型名