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 c preprocessors?
What is a const pointer in c?
Differentiate between the expression “++a” and “a++”?
Difference between exit() and _exit() function?
Explain how do you sort filenames in a directory?
Why is C language being considered a middle level language?
How do you search data in a data file using random access method?
How can I dynamically allocate arrays?
What is a char c?
How to establish connection with oracle database software from c language?
Differentiate between #include<...> and #include '...'
Do you have any idea how to compare array with pointer in c?
Is linux written in c?
How to write c functions that modify head pointer of a linked list?
Distinguish between actual and formal arguments.