#include<stdio.h>
#include<stdlib.h>
int main()
{
char a[20]={0},b[10]={0};
int i,j=0;
printf(“Enter name1:\n”);
scanf(“%s”,a);
printf(“Enter second name:\n”);
scanf(“%s”,b);
for(i=0;i<20;i++)
{
if(a[i]==”)
{
a[i]=b[j]; j++;
}
}
printf(“Concatination is: %s\n”,a);
return 0;
}
note: – output
enter the name 1=hye
enter the name 2=dude
concatination is hyedude