list1.swap(List2)The swap member function swaps the elements stored in twolists. For example, assuming list1 and list2 are lists, thestatement shown above will exchange the values in the two
What will happen if size of list1>size of list2 orsize of list2>size of list1?