Possible Duplicate:
c difference between malloc and calloc
Is there any situation where you would prefer malloc over calloc. i know both malloc and calloc allocate memory dynamically and that calloc also initializes all bits in alloted memory to zero. From this i would guess its always better to use calloc over malloc. Or is there some situations where malloc is better? Performance may be?