Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the definition of a function, isReverse , whose firsttwo parameters are ar

ID: 3617605 • Letter: W

Question

Write the definition of a function, isReverse , whose firsttwo parameters are arrays of integers of equal size, and whosethird parameter is an integer indicating the size of each array.The function returns true if and only if one array is the reverseof the other. ("Reverse" here means same elements but in reverseorder.)

Note: do not make the arrays constant

what i did so far:
bool isReverse(int n[],int k[])
for(int n=0; int k=size - 1; x<size; n++, k--)
{
if (array1[n] != array2[k])
{
return false;
}
}
return true;

im getting the errors
-This function requires three arguments.
-The header of your function does not look correct.

please help!

Explanation / Answer

please rate - thanks with a test program #include using namespace std; bool isReverse(int[],int[],int); int main() {int a[5]={1,2,3,4,5}; int b[5]={5,4,3,2,1}; int c[5]={5,6,4,2,4}; cout