网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
定义下列结构体(联合)数组: struct st { char name[15]; int age; }a[10]={"ZHA0",14,"WANG",15,"LIU",16," ZHANG",17); 执行语句printf("%d,%C",a[2].age,*(a[3].name+ 2))的输出结果为( )。
A.15,A
B.16,H
C.16,A
D.17,H
参考答案
更多 “ 定义下列结构体(联合)数组: struct st { char name[15]; int age; }a[10]={"ZHA0",14,"WANG",15,"LIU",16," ZHANG",17); 执行语句printf("%d,%C",a[2].age,*(a[3].name+ 2))的输出结果为( )。A.15,AB.16,HC.16,AD.17,H ” 相关考题
考题
有以下结构体说明,变量定义和赋值语句: 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 St { char name[15]; int age; }a[10]={"ZHAO",14,"WANG",15,"LIU",16,"ZHANG",17}; 执行语句printf("%d,%c",a[2].age,*(a[3].name+2))的输出结果为( )。A.15,AB.16,HC.16,AD.17,H
考题
定义下列结构体(联合)数组:struct st{ char name[15]; int age;}a[10]={"ZHAO",14,"WANG",15,"LIU",16,"ZHANG",17};执行语句printf("%d,%c",a[2].age,*(a[3].name+2))的输出结果为( )。A.15,AB.16,HC.16,AD.17,H
考题
定义下列结构体(联合)数组: struct st { char name[15]; int age; }a[10]={"ZHAO",14, "WANG",15, "LIU",16, "ZHANG",17 }; 执行语句printf["%d,%c",a[2].age, *(a[3].name+2))的输出结果为( )。A.15, AB.16, HC.16, AD.17, H
考题
定义下列结构体(联合)数组:struct st{ char name[15];int age;}a[10]={ZHA0,14,ZHA0,14,WANG,15,LIU,16, ZHANG,17);执行语句printf(%d,%C,a[2].age,*(a[3].name+ 2))的输出结果为( )。A.A.15,AB.16,HC.16,AD.17,H
考题
定义下列结构体(联合)数组:struct st{ charn ame[15];int age;}a[10]={"ZHAO",14,"WANG",15,"LIU",16,"ZHANG",17};执行语句printf("%d,%c",a[2].age,*(a[3].name+2) )的输出结果为( )。A.15,AB.16,HC.16,AD.17,H
考题
14、可用struct 结构体名来定义结构体类型。
热门标签
最新试卷