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

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

 

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