What's the difference between calloc() and malloc()?
Answer Posted / k.thejonath
Malloc allocates a block of memory whereas using calloc we
can allocate array of memory blocks and all locations are
initialized to zeros
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is typedef example?
Which programming language is best for getting job 2020?
What are derived data types in c?
What extern c means?
Why does everyone say not to use gets?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is calloc() function?
How are pointers declared in c?
Explain modulus operator.
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Is multithreading possible in c?
What is New modifiers?
What are reserved words with a programming language?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is the difference between void main and main in c?