Question: 17. Complete the function isEqual that compares the elements in two vectors and returns true if all of the elements in both vectors match and

 17. Complete the function isEqual that compares the elements in two

17. Complete the function isEqual that compares the elements in two vectors and returns true if all of the elements in both vectors match and false otherwise. If elements in two vectors does not match, then print the first element of both vectors that does not match. Assume the size of two vectors is same. v1 Output Example Case 1 Case 2 1241 63 2133 15 v2 12 41 63 21 54 25 Return value true false 33 54 bool isEqual (vector vi, vector v2) { vector::iterator itl; while u { if ( { return } } return }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!