字符型数组输入时不要有&符号

int main(void){
  char c[5];
  scanf("%s",c);
  printf("%s",c);
}

 

posted @ 2018-05-01 18:45  sunnybowen  阅读(584)  评论(0编辑  收藏  举报