Question: Which one of these are real differences between malloc and calloc? A: malloc needs to know the type of the variable that you are allocating.
Which one of these are real differences between malloc and calloc?
A: malloc needs to know the type of the variable that you are allocating.
B: calloc goes faster; malloc can cause performance bottlenecks by comparison.
C: calloc returns memory on the stack, but malloc returns memory on the heap.
D: malloc returns memory that might contain arbitrary values but calloc is guaranteed to return memory that has been set to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
