Answers for "program to merge two strings in c"

C
3

concatenate two strings in c

#include <stdio.h>
#include <string.h>
int main()
{
  char a[1000], b[1000];

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

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

  strcat(a, b);

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

  return 0;
}
Posted by: Guest on May-10-2020
0

program to merge two strings in c

3
10,20,40
3
30,50,60
Posted by: Guest on April-20-2021
0

program to merge two strings in c

2
  10 20
Posted by: Guest on April-20-2021

Code answers related to "program to merge two strings in c"

Code answers related to "C"

Browse Popular Code Answers by Language