运行下列程序段,输出结果是( ) 。 struct country { int num; char name[10]; }x[5]={1,"China",2,"USA",3,"France",4, "England",5, "Spanish"}; struct country *p; p=x+2; printf("%d,%c",p->num,(*p).name[2]);
选项:
A:4,g
B: 5,Spanish
C:3,a
D:2,USA
发布时间:2024-06-08 23:08:04