Loading practice questions
What is the use of fill() function in array class?
Correct Answer: B — To replace all the elements of the array which are equal to the given value
Explanation:
As the size of both the array classes is not equal therefore the swap function gives an error stating that no matching function available.