about memset

can anyone tell me what is the function of memset???

Fill block of memory

Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char). (Source : cplusplus.com)

Maybe this will help you to understand further - http://discuss.codechef.com/questions/731/memset-trouble

//