您的位置首页百科问答

strcat

strcat

的有关信息介绍如下:

strcat

将两个char类型连接。

例如:

char d="Golden";

char s="View";

strcat(d,s);

//打印d

printf("%s",d);

输出 d 为 GoldenView (中间无空格)

d和s所指内存区域不可以重叠且d必须有足够的空间来容纳s的字符串。

返回指向d的指针。

想要了解更多“strcat”的信息,请点击:strcat百科