Question: C + + Copy elements of one array into another but reversed Given an array of integers, copy elements of one array into another array

C++
Copy elements of one array into another but reversed
Given an array of integers, copy elements of one array into another array of the same size, but in reverse order
Write a function:
void reverseCopy(int source[], int destination[],
int size)
that accepts an array to be copied, source, an array into which the copy should be placed, destination, and the size of the two arrays.
Input Parameters:
source ={9,0,2,1,8}
size =5
Output (the destination array):
81209
You only need to write the function. A main program will be provided which will call your function, and print the array contents of the destination array after your function ends. DO NOT CHANGE ANY OF THE STARTER CODE!
C + + Copy elements of one array into another but

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!