更多"有以下说明和定义语句:struct studentint age; c"的相关试题:
[单项选择]有以下说明和定义语句:
struct student
int age; char num[8] ;;
struct student stu [3] = 20, "200401" , 21, "200402" , 19, "200403" ;
stract 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”),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"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是
A. (p++)->num
B. p->num
C. (*.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 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 STD
char name[10];
int age;
char ***;
s[5],*ps;
ps=&s[0];
则以下scanf函数调用语句中错误的结构体变量成员的是______。
A. scanf("%s",s[0].name);
B. scanf("%d",&s[0].age);
C. scanf("%c",&(ps->***));
D. scanf("%d",ps->age);
[单项选择]若有结构体定义:
struct stuint 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;
[单项选择]若有以下说明和定义
union dt
int a;char b;double c; data;
以下叙述中错误的是
[单项选择]有以下定义和语句:
struct students
int num;char name[20];char c;
struct
int grade1;int grade2;s;
;
struct students w,*pw;
*pw=w;
下列赋值语句不正确的是( )。
A. num=1002;
B. grade1=85;
C. pw->num=1002;
D. s.grade2=85;
[单项选择]
有以下定义和语句
struct workers
{ int num;char name[20];char c;
struct
{int day; int month; int year;} s;
};
struct workers w,*pw;
pw=&w;
能给w中year成员赋1980的语句是()
A. *pw.year=198O;
B. w.year=1980;
C. pw->year=1980;
D. w.s.year=1980;