What is “memset” (used in line no. 16 of this video)?
Divisible Subarrays
Hello @tanyaa.sood,
memset is a function under cstring headerfile.
this function is used to initialize all cells of an array or vector with either -1 or 0.
Click here to study in detail.
Hope, this would help.
Give a like if you are satisfied.
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.