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 reverseCopyint 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
size
Output the destination array:
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!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
