ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
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
As the size of both the array classes is not equal therefore the swap function gives an error stating that no matching function available.