char* strcat(char* cpDest, const char* kcpSrc);
#include <cstdio>
#include <cstring>
int main()
{
char caSource[] = ".net";
// Allocate enough room for concatenation
char caDest[10] = "XoaX";
// The two strings before concatenation
printf("%s + %s = ", caDest, caSource);
strcat(caDest, caSource);
// The destination string after concatenation
printf(" %s\n", caDest);
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.