we have both malloc() and calloc(),both work as same then why they introduced two differen functions?please
smdjilani
0
js
Recommended Answers
Jump to PostThey do not both work the same. calloc() initialized the memory block with all 0's while malloc() does not. And they do not have the same parameters.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.