int main(void){ char c[5]; scanf("%s",c); printf("%s",c); }
字符型数组输入时不要有&符号
原文:https://www.cnblogs.com/sunnybowen/p/8977045.html