I had forgotten about calloc for the longest time, but I was recently reminded of it. Now i'm curious, what would be the difference between
malloc(numElems * elemSize); and
calloc(numElems, elemSize); ? If my knowledge of arrays is correct, there shouldn't be any difference in the memory allocated.