定义下列结构体(联合)数组: 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,A
B.16,H
C.16,A
D.17,H
相关考题:
定义结构体数组:struct stu{int num;charname[20];}x[5]={1,"LI",2,"ZHAO",3,"WANG",4,"ZHANG",5,"LIU"};for(i=1;i<5;i++)printf("%d%C",x[i].num,x[i]name[2]);以上程序段的输出结果为( )。A.2A3N4A5UB.112A3H41C.1A2N3A4UD.2H3A4H51
定义结构体数组:struct stu{ int num;char name[20];}x[5]={1,"LI",2,"ZHAO",3,"WANG",4,"ZHANG",5,"LIU"};for(i=1;i<5;i++)printf("%d%c",x[i].num,x[i].name[2];以上程序段的输出结果为( )。A.2A3N4A5UB.112A3H41C.1A2N3A4UD.2H3A4H51
定义结构体数组: struct stu { int num; char name[20]; }x[5]={1,"LI",2,"ZHAO",3"WANG",4,"ZHANG",5"LIU"}; for(i=1;i<5;i++) printf("%d %c", x[i].num, x[i].name[2]); 以上程序段的输出结果为( ).A.2A3N4A5UB.1I2a3h4IC.1A2N3A4UD.2H3A4H5I
定义结构体数组: struct stu { int num; char nameE20]; }X[5]={1,"LI",2,"ZHAO",3,"WANG",4," ZHANG",5,"LIU"); for(i=1;i5;i++) printf("%d%c",x[i].num,x[i].name[2]); 以上程序段的输出结果为( )。A.2A3N4A5UB.112A3H4IC.1A2N3A4UD.2H3A4H5I
定义下列结构体(联合)数组: 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 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