c语言结构体方面的问题

小弟初学者在编程的时候遇到了一个问题
struct std{
char nane[4];
};
struct std student;
student.name={a,c,f,g};

这个样子的问题是不是那里搞错了。。。。为什么会提示错误啊!

字符串只有在声明的时候才能初始化,其它时候赋值只能一个字符一个字符的赋值,或者通过strcpy之类的函数。
改成:struct std student ={"abcf"};

把std换个名字吧。

student.name={a,c,f,g};

student.name={'a','c','f','g'};

ssssssssssssssssssssssssssssssss

木木木森土土土土f

struct std student;
student.name={a,c,f,g};

你上面的步骤就给student命名了,为什么到下面这一步瞬间就变成了student了 ?