xxxxxxxxxx
#include <stdio.h>
#include <string.h>
int main() {
char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
printf("%s\n", str);
}
xxxxxxxxxx
char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
xxxxxxxxxx
#include <stdio.h>
#include <string.h>
int main() {
char str1[50] = "Hello";
char str2[] = " World";
strcat(str1, str2);
printf("Concatenated String: %s", str1);
return 0;
}