What's the difference between calloc & malloc followed by a memset?
Possible Duplicate:
c difference between malloc and calloc
why malloc+memset slower than calloc?
What's the difference between calloc & malloc followed by a memset? If I replace all calls to calloc with a malloc followed by a memset, will it be the same?
If that is the case, then why are two functions malloc & calloc seperately provided?
While calloc()
always initialises the memory area with zeroes ( '