char sex; /*性别*/ struct DATE birth; };
struct student s;
设变量s中的“生日”应该是“1984年11月11日”,下列对“生日”的正确赋值方式是( )。 A)year=1984; B)birth.year=1984; month=11; birth.month=11; day=11; birth.day=11; C)s.year=1984; D)s.birth.year=1984; s.month=11; s. birth.month=11; s.day=11; s.birth.day=11; 18.若有以下定义的语句: union data { int i; char c; float f; }a; int n;
则以下语句正确的是( )。
A)a.i=5 B)a={2,?a?,1.2} C)printf(“%d”,a) D)n=a 19. 表达式a
A)~,&,<, || B)~,||,&,< C)~,&,||,< D)~,<,&, || 20.若执行fopen函数时发生错误,则函数的返回值为( )。 A)地址值 B)0 C)1 D)EOF 11.C 12.B 13.A 14.C 15.B 16.B 17.D 18.A
第 9 页 ,共 9 页