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
Which is the best c++ compiler?
What is the difference between cin.read() and cin.getline()?
Why c++ does not have finally?
Explain the volatile and mutable keywords.
What is difference between malloc()/free() and new/delete?
What is the use of cmath in c++?
Explain the difference between struct and class in terms of access modifier.
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Can member data be public?
What are exceptions c++?
What is the need of a destructor?
What are enumerations?
Why do we use string in c++?
What is lambda expression c++?
what is oops and list its features in c++?