C dangling pointer question

后端 未结 5 520
北海茫月
北海茫月 2020-12-16 06:46
char *xyz()
{
   char str[32];
   strcpy(str,\"Hello there!\");
   return(str);
}


void main()
{
  printf(\"%s\",xyz());
}

When I call xyz(), is i

5条回答
提交回复
热议问题