定义结构体数组 struct stu { int num; char name[20]; }x[5]={1,"ZHAO",2,"QIAN",3,"SUN",4,"LEE",5,"ZHOU"}; for(i=1;i<5;i++)

admin2011-06-10  27

问题 定义结构体数组    struct stu    { int num;    char name[20];    }x[5]={1,"ZHAO",2,"QIAN",3,"SUN",4,"LEE",5,"ZHOU"};    for(i=1;i<5;i++)    printf("%d%c",x.num,x.name[2]);    程序执行后的输出结果是(    )。

选项 A、2A3N4E5O
B、1H2I3U4E
C、1A2N3E4O
D、1A2N3E4O

答案A

解析
转载请注明原文地址:https://jikaoti.com/ti/MnB0FFFM
0

最新回复(0)