Difference between calloc and malloc?
I know "calloc" and "malloc" are the concepts related to dynamic memory allocation, but I am not clear with what is the exact difference between the two.
I need to use dynamic memory allocation in my program handling garbage collection.
Can you tell me which one should be used in which case and what are the pros/cons of both?








