#include
#include
#include
void main()
{
Char text1[30], text2[10],n;
Puts(“Enter text1:”);
gets(text1)
puts(“Enter text2:”);
gets(text2);
printf(“Enter number of characters to add:”);
gets(n);
strcat(text1,””);
strncat(text1, text2,n);
clrscr();
printf(“%s
”, text1);
getch();
}
Output:
Enter text1:MAY I
Enter text2: COME IN?
Enter number of characters to add:4
MAY I COME