Write a program with a function named isEqualArr that accepts apair of arrays of integers as parameters and returns true if thearrays contain the same elements in the same order. If the arraysare not the same length, your function should return false. Forexample, if the following arrays are declared: int[] arr1 = {10,20, 30, 40, 50, 60}; int[] arr2 = {10, 20, 30, 40, 50, 60}; int[]arr3 = {20, 3, 50, 10, 68}; The call isEqualArr(arr1, arr2) returnstrue but the call isEqualArr(arr1, arr3) returns false. in c++
Expert Answer
Answer to Write a program with a function named isEqualArr that accepts a pair of arrays of integers as parameters and returns tru…