如何给结构体字符串数组赋值。为什么老出错,而且就是出在s.name赋值那里

#include <stdio.h>
struct student
{
int year;
char name[8];
}s;
main()
{
s . year = 10;
s . name= "wsdssds";
printf("%d%s",s.year,s.name);
}

第1个回答  2013-04-08
c语言没过得表示亚历山大...
相似回答