getting the total put the two array values in one array without strcat in c++co code example
Example 1: 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;
}
Example 2: how to concatenate two big strings without using strcat in c++
cin >> doubleNumber;
cin.ignore();
getline(cin, stringName);