Memset function?

What memset do ?
Please explain taking this question as an example …

@piyushkumar999999 memset basically sets all the array indices to the value you provide in the argument.
It is the same as running a for loop and doing a[i] = some_value