#include <string.h>
#include <conio.h>
#include <stdio.h>

void main()
{
    int i,len=0,j;
    char str[50],str1[50],ch,ch1;
    //clrscr();
    printf("\nEnter the First String : " );
    gets(str);
    printf("\nEnter the Second String : " );
    gets(str1);
    for(i=0; str[i]!='\0'; i++)
{
    len++;
}
len=len-1;
for(i=0; str1[i]!='\0'; i++)
{
    str[len++]=str1[i];
    }
    str[len]='\0';
    printf("\n Concatenated String is: %s ",str);
    getch();
}

 OUTPUT:

Enter the First String : Programming9
 
Enter the Second String : .com
 
 Concatenated String is: Programming.com