structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name); - 高级语言程序设计(一)(00342) - 专业知识收录平台"> structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name); - 高级语言程序设计(一)(00342) - 专业知识收录平台">
当前位置:首页 > 高级语言程序设计(一)(00342) > 正文内容

运行下列程序段,输出的结果是()
structcountry
{intnum;
charname[20];}
x[5]={1,"China",2,"USA",3,"Era/icett4,"England",5,Spanish"};
structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name);

高老师2年前 (2024-03-26)高级语言程序设计(一)(00342)12

运行下列程序段,输出的结果是()
structcountry
{intnum;
charname[20];}
x[5]={1,"China",2,"USA",3,"Era/icett4,"England",5,Spanish"};
structcountry*P;
inti=3;
p=x;
prinff("\n%d,%s",(*(P+i)).num,(*(P+i)).name);

A.3,France

B.4,England

C.5,Spanish

D.1,China

正确答案是B

扫描二维码免费使用微信小程序搜题/刷题/查看解析。

版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。

本文链接:https://doc.20230611.cn/post/442487.html

分享给朋友: