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 size of array float a(10)?
What does %p mean?
What is the use of #include in c?
What is the meaning of && in c?
Explain what is a static function?
Write a function that will take in a phone number and output all possible alphabetical combinations
Is there anything like an ifdef for typedefs?
What is the role of this pointer?
Differentiate between static and dynamic modeling.
Explain pointer. What are function pointers in C?
Difference between linking and loading?
while initialization of array why we use a[][2] why not a[2][]...?
What is strcpy() function?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
How can I do peek and poke in c?