Question: C++ 2. Write your code to compare the following two arrays. int arrayA[SIZE] = { 5, 10, 15, 20, 25 }; int arrayB[SIZE] = {
C++
2. Write your code to compare the following two arrays.
int arrayA[SIZE] = { 5, 10, 15, 20, 25 };
int arrayB[SIZE] = { 5, 10, 15, 20, 25 };
If equal, display The arrays are equal
If not equal display The arrays are not equal
Hints: Use const int SIZE, bool data type, && operator, != operator, loop, statement(if, else).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
