Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C++
- Two arrays list1 and list2 are identical if they have the same contents. Write a function that returns
- true if list1 and list2 are identical using the following header:
- bool isEqual(const int list1[], const int list2[], int size)
- Write a test program that prompts the user to enter two lists of integers and displays whether the two
- are identical. Note that the first number in the input indicates the number of the elements in the list.
- This number is not part of the list. Assume the list size is maximum 20.
- Sample Input:
- 5 2 5 6 6 1
- 5 5 2 6 1 6
- Sample Output:
- Enter list1: 5 2 5 6 6 1
- Enter list2: 5 5 2 6 1 6
- Two lists are identical
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement