C结构体赋值输出问题
main(){
struct stu
{
int num;
char name [20];
char sex;
float score;
}boy1,boy2;
boy1.num=102;
boy1.name="zhang ping";
printf("input sex and score\n");
scanf("%c,%f\n",&boy1.sex,&boy1.score);
boy2=boy1;
printf("number=%d\nName=%s\n",boy2.num,boy2.name);
printf("sex=%c\nscore=%f\n",boy2.sex,boy2.score);
}为什么运行时这个boy1.name="zhang ping";提示出现错误,这个程序哪错了,谁能帮我改好