What is the difference between malloc() and calloc()?
Answer Posted / glibwaresoftsolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the best way to store flag values in a program?
What is the meaning of && in c?
What is advantage of pointer in c?
Explain what are binary trees?
If you know then define #pragma?
How to write c functions that modify head pointer of a linked list?
What is variable declaration and definition in c?
Should I learn data structures in c or python?
What is an array in c?
What is the size of empty structure in c?
What is array of structure in c?
How can type-insensitive macros be created?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Do you know the use of fflush() function?
What are structures and unions? State differencves between them.