How to solve this Cpp programming program
Create two arrays and pass them into a function by reference. The function should reverse the first array and place it into the second array (as below).
Arrays when passed into function
Array1: 1, 2, 3, 4, 5
Array2: 0, 0, 0, 0, 0
Arrays when returned from function
Array1: 1, 2, 3, 4, 5
Array2: 5, 4, 3, 2, 1
After completing this, output the arrays.