Given two arrays, join these two arrays using STL in C++. Example:
Input: arr1[] = {1, 45, 54, 71, 76, 12}, arr2[] = {1, 7, 5, 4, 6, 12} Output: {1, 4, 5, 6, 7, 12, 45, 54, 71, 76} Input: arr1[] = {1, 7, 5, 4, 6, 12}, arr2[] = {10, 12, 11} Output: {1, 4, 5, 6, 7, 10, 11, 12}
Output:First Array: 1 12 45 54 71 76
Second Array: 1 4 5 6 7 12
After joining:
1, 4, 5, 6, 7, 12, 45, 54, 71, 76,