What is the difference between malloc() and realloc()?
Answer Posted / glibwaresoftsolutions
• 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
Explain about C function prototype?
Is c easier than java?
Explain how can a program be made to print the line number where an error occurs?
How can I split up a string into whitespace-separated fields?
What language is c written?
Why we use conio h in c?
What are the disadvantages of c language?
What is realloc in c?
Where local variables are stored in c?
Is exit(status) truly equivalent to returning the same status from main?
What is the heap?
Explain what are the different data types in c?
What are the similarities between c and c++?
Explain high-order and low-order bytes.
What are the 3 types of structures?