i need to check a program.. take two arrays A and B,now write function that if every element of A is equal to its corresponding element in array B.the function must accept two pointer values and return a boolean
Code: bool compareArrays(int *arrayA, int *arrayB, int arraySize) { int i; for (i = 0; i < arraySize; i++) { if (arrayA[i] != arrayB[i]) { return false; } } return true; }