You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
#include<string.h>
void main()
{
char str1[20],str2[20];
clrscr();
printf("enter string1");
gets(str1);
printf("enter string2");
gets(str2);
strcat(str1," ");
strcat(str1,str2);
puts(str1);

getch();

You might also like