题目内容

已知有描述学生信息的结构体如下,则对学生生日赋值正确的是()struct student{int num;char name[20];struct{int year;int month;int day;}birth;};struct student stu ;

A. year=2019 month=11 day=12
B. birth.year=2019 birth.month=11 birth.day=12
C. s.year=2019 s.month=11 s.day=12
D. s.birth.year=2019 s.birth.month=11 s.birth.day=12

查看答案
更多问题

在CFREE 5环境下(int类型占4个字节),以下程序的运行结果是()#includeint main(){struct date{int year;int month;int day;} birth;printf(“%d\n”,sizeof(struct date));return 0;}

A. 10
B. 12
C. 6
D. 8

在CFREE 5环境下(int类型占4个字节,char类型占1个字节,double占8个字节),以下程序输出结果是()#includeint main(){union date{int year;char month;double day;} birth;printf("%d\n",sizeof(birth));return 0;}

A. 12
B. 10
C. 8
D. 6

若有以下说明和语句:则对结构体变量std中成员age的引用方式错误的是()struct student{int age;int num;}std, *p;p=&std;

A. std.age
B. p->age
C. (*p).age
D. *p.age

以下说法中不正确的一项是()

A. 装卸搬运设备可以提高物流效率
B. 装卸搬运活动不创造社会价值
C. 物流活动中离不开装卸搬运
D. 装卸不当会引起货物在运输中受损

答案查题题库