What is the difference between malloc() and calloc()?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
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 |
Answer / 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 |
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 |
Explain how do you print an address?
write a program in C to swap two variables
what is the use of a array in c
What are the different types of storage classes in C?
Do array subscripts always start with zero?
Disadvantages of C language.
How can I ensure that integer arithmetic doesnt overflow?
What is the difference b/w Structure & Union?
What is the use of the sizeof operator?
what is c?
Is c is a middle level language?
What does static mean in c?