Whats is memset here

whats is memset here

hello @Aditya-Kushwaha-914550392281281
memset is a function used for intialisation.
let say u have an array (say arr) and u want to set value at every index of this array as c.
then u can do this using memset as follows.->
memset(arr, c , sizeof(arr) );

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.

i id not understand what we are doung here bhjiaya


pls refr this explanation

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.