Struct person{char name[9]; ">
当前位置:首页 > C语言开发工程师 > 正文内容

有如下定义
Struct person{char name[9];

有如下定义
Struct person{char name[9]; int age;};
Struct person class[10] = { "John",17,
"Paul",19,
"Mary",18,
"Adam",16,};
根据上述定义,能输出字母A的语句是______。

A.printf("%c\n",class[3].name);

B.printf("%c\n",class[3].name[0]);

C.printf("%c\n",class[4].name[1]);

D.printf("%c\n",class[4].name[0]);

正确答案是B

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

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

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