Answer:
#include <iostream>
using namespace std;
int main(){
int arrayA[18] = {1,2,3,4,5,6,7,8,9,10,11,12,13};
int n = arrayA.length();
int arrayB[5] = {14,15,16,17,18};
for (int i = 0; i < arrayB.length(); i++){
arrayA[n] = array[i];
n++;
}
}
Explanation:
The C++ program defines two arrays namely; "arrayA" and "arrayB". The first array has a space size of 18 while the second array has a size of 5. In the program, the second array is merged into the first array