About the memset

what will be the using of memset??

memset is used to initialize a block of memory with given value.
example: memset(a,-1,sizeof(a)) initializes array a elements to -1

1 Like