开放大学在线学习搜题
当前位置:首页 > 学习题库 > C语言程序设计

问题

根据下面的定义,能打印出字母“M”的语句是。 struct person {

发布时间:2025-11-06   作者:ybf079400   浏览:0

根据下面的定义,能打印出字母“M”的语句是。
struct person
{

char name[9];

int age;

};
struct person class[10]={"John",17,"Paul",19,"Mary",18,"adam",16 };

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

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

C、 Printf("%c\n",class[2].name[l]);

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

您可能感兴趣的试题