Fill and memset

i am not able to understand the difference between fill and memset . which is better for entering any specific value other than 0 as the initialisation of all elements of array .

The main difference MEMSET can only initialize 0,-1
Fill can initialize all

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.