为什么下面的代码是非法的?
typedef struct{ char a[6]; } point; int main() { point p; p.a = "onetwo"; }
它与文字的大小有什么关系吗?或者在声明后将字符串文字分配给char数组是否违法?
c
c ×1