#include<stdio.h> struct student{ char name[4]; double age; }; int main(void) { int i,index,j,n; struct student studengts[4],temp; for(i=0;i<n-1;i++){ index=i; for(j=i+1;j<n;j++) if(students[j].age<students[index].age) index=j; temp=student[index]; studengs[index]=student[i]; student[i]=temp; } printf"num name age "; for(i=0;i<n;i++) printf("%d %s %.2f ",student[i].name,student[i]age]); return 0; }