2016-10-29 14:46发布
int main() { char s1[50], s2[50] = "hello"; s1 = s2; printf("%s", s1); }
s1 = s2 那句报错了,问题到底出在哪?求解。
s1 = s2
GCC会提示下面错误: error: incompatible types when assigning to type char[50] from type char *
最多设置5个标签!
GCC会提示下面错误:
error: incompatible types when assigning to type char[50] from type char *
一周热门 更多>