若定义如下结构,则能打印出字母M的语句是( )。struct person{ char name[9]; int age;}; struct person class[10]={"Wujun",20,"Liudan",23,"Maling",21,"zhangming",22};
- A、printf("%cn",class[3].name);
- B、printf("%cn",class[2].name[0]);
- C、printf("%cn",class[2].name[1]);
- D、printf("%cn",class[3].name[1]);
答案:
发表评论 取消回复