Program to show String concatenation using string function in c language.




#include
#include
#include

main()
{
char a[15],b[15];
clrscr();
printf("\n Given first string \n");
gets(a);
printf("Give second string \n");
gets(b);
strcat(b,a);
printf("\n resultant string is ");
puts(b);
}

1 comment: