+ 1
Explain difference between calloc and malloc with an example.
1 Answer
+ 3
calloc allocates memory and initializes it to zeros whereas malloc does not initialize the memory which still contains whatever values were there...source of unpredictable behavior if you don't address this in your code.