请大家帮忙看看,给个详解。
为什么输出的id不是已经设定的这个号码?struct Teacher
{ char id[4]; char name[10];
int age; char course[20];
} teac[2]={ {"0324","Li",40,"C Language"},
{"1728","Hu",30,"Data Structure"}};
#include<stdio.h>
int main()
{int i;
for(i=0;i<2;i++)
printf("%s teaches %s\n %d\n %d\n",teac[i].name,teac[i].course,teac[i].age,teac[i].id);
return 0;
}