• 2022-06-17
    对以下定义,能输出字符串"Mary"的语句是( )。struct student { char name[20]; int age; }; struct student stu[100]={"John",16,"Paul",17,"Mary",18 };
    A: printf("%s",stu[2].name);
    B: printf("%s",stu[1].name);
    C: printf("%s",stu[2]);
    D: printf("%s",stu[1]);