本文共 270 字,大约阅读时间需要 1 分钟。
**下面的实例演示了 strcat() 函数的用法。
#include <stdio.h>
#include <string.h>int main ()
{ char src[50], dest[50];strcpy(src, “This is source”);
strcpy(dest, “This is destination”);strcat(dest, src);
printf(“最终: |%s|”, dest);
return(0);
}**输出
|This is destinationThis is source|转载地址:http://oyegn.baihongyu.com/