Hi friends,
In an interview a question was asked in C to me. The question is:
Why we often use malloc instead of calloc though calloc provides or intializes the elements to 0 when allocated. I was baffled by this. I have not even thinked about this. I wonder why most of programmers use only malloc. Is there any mem related problems in Calloc or what's the solutions to this. Please let me know about it.