Usage of memset

what is meant by memset and how is it used

hello @vector.9974memset is used in c++ to set the array with a particular value .
like we want to intialise the whole array with -1 then instead of running the loop of array size we can do like memset(arr,-1,sizeof(arr)).
if you still hav any doubt you can ask here .
Happy Learning !!