/*PROGRAM TO APPEND ONE STRING AT THE END OF ANOTHER STRING*/
#include<stdio.h>
#include<conio.h>
void main()
{
char a[20],b[10];
int i=0,j=0;
clrscr();
printf(“Enter first string: “);
gets(a);
printf(“Enter second string: “);
gets(b);
while(a[i]!=’\0′)
{
i++;
}
j=0;
while(b[j]!=’\0′)
{
a[i]=b[j];
i++;
j++;
}
a[i]=’\0′;
printf(“After appending second string to first string the result is: “);
puts(a);
getch();
}