1#include <stdio.h>
2#include <string.h>
3int main()
4{
5 char a[1000], b[1000];
6
7 printf("Enter the first string\n");
8 gets(a);
9
10 printf("Enter the second string\n");
11 gets(b);
12
13 strcat(a, b);
14
15 printf("String obtained on concatenation: %s\n", a);
16
17 return 0;
18}