#include<stdio.h>
#include<string.h>
int main()
{
char a[20],b[20];
printf("Enter the first string:");
gets(a);
printf("Enter the second string:");
gets(b);
strcat(a,b);
printf("The concatenated string is %s.",a);
return 0;
}
No comments:
Post a Comment