Monday, May 21, 2012

What's the difference between calloc & malloc followed by a memset?

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?





No comments:

Post a Comment