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

运行下列程序后输出的结果是()
structcountry
{intnum;
charname[20];
}x[5]={1,"China",2,"USA",3,"France'/,4,"England",5,"Spanish"};
structcountry*p;
p=x+3;
printf("%d,%c",p->num,(*p).name[2);

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

运行下列程序后输出的结果是()
structcountry
{intnum;
charname[20];
}x[5]={1,"China",2,"USA",3,"France'/,4,"England",5,"Spanish"};
structcountry*p;
p=x+3;
printf("%d,%c",p->num,(*p).name[2);

A.3,a

B.4,g

C.2,U

D.5,S

正确答案是B

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

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

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

分享给朋友: