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
What are the uses of a pointer?
How a string is stored in c?
Write a simple code fragment that will check if a number is positive or negative.
Where does the name "C" come from, anyway?
What is LINKED LIST? How can you access the last element in a linked list?
What are header files in c programming?
What are local static variables? How can you use them?
Explain what is the difference between functions abs() and fabs()?
What is extern keyword in c?
Explain what header files do I need in order to define the standard library functions I use?
The file stdio.h, what does it contain?
Can true be a variable name in c?
What is union and structure in c?
What are the types of unary operators?
Can include files be nested?