structcountry*P;
P=x+2;
prinff("%d,%s",P->num,x[3].name); - 高级语言程序设计(一)(00342) - 专业知识收录平台">
structcountry*P;
P=x+2;
prinff("%d,%s",P->num,x[3].name); - 高级语言程序设计(一)(00342) - 专业知识收录平台">
运行下列程序后输出的结果是()
structcountry
{intnum;
charname[20];
}x[5]={1,"China",2,"USA",3,France",4,"England",5,Spanish"}‘;
structcountry*P;
P=x+2;
prinff("%d,%s",P->num,x[3].name);
A.2,France
B.3,France
C.4,England
D.3,England
正确答案是D
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。