C Program to concatenate two strings into a third string using built in functions
Program
#include<stdio.h>
#include<string.h>
void main()
{
char str1[100];
char str2[100];
char dest_str[100];
int len;
printf("Enter the String 1 :\t");
scanf(" %s", str1);
printf("Enter the String 2 :\t");
scanf("%s", str2);
strcpy(dest_str, str1);
strcat(dest_str, str2);
printf("Concated String : %s\n", dest_str);
}
Output
Enter the String 1 : kanya
Enter the String 2 : kumari
Concated String : kanyakumari