“`”

已知strcpy 函数的原型是 char *strcpy(char *strDest,
const char *strSrc);其中strDest是目的字符串,
strSrc 是源字符串。
(1)不调用C++/C 的字符串库函数,请编写函数
strcpy 。
(2)strcpy 能把 strSrc 的内容复制到strDest,为什
么还要char * 类型的返回值?

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.