运行下列程序段,输出结果是()。structcountry{intnum;charname[10];}x[5]={1,"China",2,"USA",3,"France",4,"England",5,"Spanish"};structcountry*p;p=x+2;printf("%d,%c",p->num,(*p).name[2]);
运行下列程序段,输出结果是()。structcountry{intnum;charname[10];}x[5]={1,"China",2,"USA",3,"France",4,"England",5,"Spanish"};structcountry*p;p=x+2;printf("%d,%c",p->num,(*p).name[2]);
A.3,a
B.4,g
C.2,USA
D.5,Spanish
正确答案:A