KodeGod.com

084. Write a program to accept two strings and concatenate them in C language

#include<stdio.h>
#include<conio.h>  
#include<string.h>
main()
{
	char *s1,*s2;
	clrscr();
	printf("Enter string 1 : ");
	scanf("%s",s1);
	printf("Enter string 2 : ");
	scanf("%s",s2);
	printf("\nConcatinated string is...%s",strcat(s1,s2));
	getch();
}