What is the use of fill() function in array class?

a) To fill an array with a given single value
b) To delete all the elements that are equal to the given value
c) To replace all the elements of the array which are equal to the given value
d) To check whether given element fills the array or not

1 thought on “ What is the use of fill() function in array class?”

Leave a Comment