main( )
{
char str1[20], str2[20], str3[20];
printf(“\nEnter your first string:”);
gets(str1);
printf(“\nEnter your second string:”);
gets(str2);
strcpy(str3, str1);
strcat(str3, str2);
printf(“Concatenated string is %s”, str3);
}
Do'stlaringiz bilan baham: