c copy string concatenate code example
Example 1: c concatenate strings
char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
Example 2: c copy 2 strings\
#include <string.h>
#include <stdio.h>
int main()
{
char str[9]="A string";
char copy[9];
strcpy(copy,str);
printf("Copied String : %s",copy);
return 0;
}