Question: Arrays. Please write program in C. Thank you. (g) Write a function that takes two integer arrays and determines if they both contain the same
Arrays. Please write program in C. Thank you.

(g) Write a function that takes two integer arrays and determines if they both contain the same elements (though are not necessarily equal) regardless of their multiplic- ity. That is, the function should return true even if the arrays' elements appear a different number of times (for example, 2, 2,3 would be equal to an array containing 3,2,3,3,3,2,2,2) int containsSameElements (const int *a, int sizeOfA, const int *b, int sizeOfB)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
