#include
struct student
{
int num;
char name[20];
float score[3];
}b[3]={{10110,"李铭",85,87.5,96.3},{10111,"张强",68,98,86.3},{10112,"李华",97.1,96.3,95.1}};
void print(struct student *c)
{
struct student*a;
for(a=c;a
printf("%d %s %.2f %.2f %.2f\n",a->num,a->name,a->score[0],a->score[1],a->score[2]);
}
int main(int argc, const char * argv[])
{
// insert code here...
print(b);
return 0;
}