【多选题】结构体数组中存有三人的姓名和年龄,以下程序输出三人中最年长者的姓名和年龄。请填空 #include "stdio.h" struct man { char name[20]; int age; }person[]={ "LiLing",18, "YangHua",19, "ZhangPing",20 }; int main() { struct man *p,*q; int old=0; p=pe...
【简答题】结构体数组中存放有3个人的姓名和年龄,以下程序可以输出他们的姓名和年龄、平均年龄和最年长者的姓名和年龄,请填空完善程序。 #include #define N 3 struct person { char name[20]; int age; }; void output(struct person a[]) { int k; for (k=0;k