C语言 结构体指针赋值 incompatible types when assigning to type 'char[20]' from type 'char *'

strcpy(pstudent->name, "guo zhao wei ");
为什么错误,该怎么写,(红色行)
 
 
追问
为什么不能直接赋值啊,
追答
用char nnnn[20]定义的,用strcpy 
用char *ppp定义的,用=来赋值


原文地址:https://www.cnblogs.com/phpxuetang/p/5978305.html