更多"若有以下定义的语句: struct student int age"的相关试题:
[单项选择]若有以下定义的语句:
struct student
int age;
int num;;
struct student stu[3]=1001,20,1002,19,1003,21;
main( )
struct student *p;
p=stu;
…
则以下不正确的引用是( )。
A. (p++)->num
B. p++
C. (*p).num
D. P=&stu.age.
[单项选择]若有以下定义的语句
struct student
int age;
int num;;
struct student stu[3]=1001,20,1002,19,1003,21;
main( )
stmct student *p;
p=stu;
…
则以下不正确的引用是
A. (p++)->num
B. p++
C. (*p).num
D. P=&stu.age.
[单项选择]有以下说明和定义语句 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. *num
D. stu[0].age
[单项选择]有以下说明和定义语句
struct student
int age;char num 8;;
struct student stu[3]=20,“200401”,21,“200402”),19,“200403”;
struct student *p=stu;
以下选项中引用结构体变量成员的表达式错误的是
A. (p++)->num
B. p->num
C. (*p).num
D. stu[3].age
[单项选择]有以下说明和定义语句:
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
[单项选择]有如下说明和定义语句:
struct student
int age; char num8;;
struct student stu[3]=20,"200401",21,"200402"),19,"200403";
struct student *p=stu;
以下选项中引用结构体变量成员的表达式错误的是( )。
A. (p++)->num
B. p->num
C. (*p).num
D. stu[3].age
[单项选择]若有如下程序段: struct student { int num;float score; } stu[3]={{10,85},{60,58},{32,23}}; main( ) { struct student*t; t=stu; } 则下面表达式中值为58的是( )。
A. (*.num
B. *(t++)->num
C. (*++score
D. (++->score
[单项选择]若有结构体定义:
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;