What is the difference between "calloc" and "malloc"?
Answer Posted / shweta
calloc initializes memory with 0 while malloc doesn't
initializes.
| Is This Answer Correct ? | 25 Yes | 4 No |
Post New Answer View All Answers
What is string in c++ programming?
In what situations do you have to use initialization list rather than assignment in constructors?
Why main function is special in c++?
Should a constructor be public or private?
How to demonstrate the use of a variable?
How long does it take to get good at leetcode?
Is c++ still being used?
What are the important differences between c++ and java?
What is a .lib file in c++?
Explain data encapsulation?
What is the basic difference between C and C++?
What is the use of turbo c++?
Explain the volatile and mutable keywords.
What is a loop? What are different types of loops in c++?
What does new in c++ do?