输出异常
struct student{ long int num;
char name[20];
char sex;
char addr[20];
}a={89031,"Li Lin",'m',"123 Beijing Road"};
#include <stdio.h>
main()
{
char b[]={"wo ai ni !"};
printf("No.:%1d\nname:%s\nsex:%c\naddress:%s\n",a.num,a.name,a.sex,a.addr);
printf("%s\n",b);
return 0;
}
我用的编译器是bc3.1,a.name,a.sex,a.addr输出均不正常,帮我查找原因.