Friday, December 30

//c program sum of two string//

#include
#include
#include

void main()
{
   char a[100], b[100];

   printf("Enter the first string\n");
   gets(a);

   printf("Enter the second string\n");
   gets(b);

   strcat(a,b);

   printf("String obtained on concatenation is: %s\n",a);

   getch();
}

No comments:

Post a Comment