#include <stdio.h>

int main(int argc, const char * argv[])
{

//1
struct Student{
int age;
char *name;
}stu[3]={{22,"peter"},{33,"tom"},{23,"tiger"}};

for (int i = 0; i < 3; i ++) {
printf("%s\t", stu[i].name);
}
printf("\n");

//2
struct Student stu1[3] ={{22,"peter"},{33,"tom"},{23,"tiger"}};
for (int i = 0; i < 3; i ++) {
printf("%s\t", stu1[i].name);
}

printf("\n");

//3
struct Student stu2[3];
stu2[0] = (struct Student){22,"peter1"};
stu2[1] = (struct Student){23,"peter2"};
stu2[2] = (struct Student){24,"peter3"};
for (int i = 0; i < 3; i ++) {
printf("%s\t", stu2[i].name);
}
printf("\n");
return 0;
}