I am reading about pointers and dynamic memory allocation in C. I have found that the function calloc()
is similar to malloc()
but the former does initialize memory to 0.
I do not understand why does it mean to initialize memory to zero?
NOTE: I am not asking the difference between malloc and calloc, but the meaning of initializing memory to zero.
Thanks in advance.