What is the difference between malloc() and calloc()?
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of static variable in c?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is null in c?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is the purpose of void in c?
How is a macro different from a function?
What are the usage of pointer in c?
What is function in c with example?
What are pragmas and what are they good for?
Explain how can I pad a string to a known length?
How does normalization of huge pointer works?
What is a nested formula?
What will be your course of action for a push operation?
What is a structure member in c?
What is function and its example?