int main(int argc,char* argv[]){
  char *p;
  p = "sfsfaf";
  scanf("%s",p);   //输入后程序崩溃

  printf("继续。。");

  return 0;
}

int main(int argc,char* argv[]){
  char p[] = {"sdfsfa"};
  scanf("%s",p);   //即使输入很长的字符串也没问题

  printf("继续。。");

  return 0;
}