what will be the using of memset??
About the 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
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