C PROGRAMMING

write a c program to concetnate two inputed strings

 #include <stdio.h>
#include <string.h>
main()
{
char a[1000], b[1000];
printf("Enter the first stringn");
gets(a);
printf("Enter the second stringn");
gets(b);
strcat(a, b);
printf("String obtained on concatenation: %sn", a);
getch();
}
Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button