What is the difference between malloc() and realloc()?
Answer Posted / nashiinformaticssolutions
• malloc(): Allocates memory.
• realloc(): Resizes an already allocated memory block, preserving existing data if possible.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Should I learn data structures in c or python?
How are 16- and 32-bit numbers stored?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Explain union. What are its advantages?
What are different storage class specifiers in c?
Write a program to swap two numbers without using third variable in c?
What is an array in c?
What is identifier in c?
Is c# a good language?
How many levels of pointers can you have?
Explain what standard functions are available to manipulate strings?
how to make a scientific calculater ?
What is a volatile keyword in c?
What do the functions atoi(), itoa() and gcvt() do?
What is the purpose of void in c?