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
What is c token?
Is sizeof a keyword in c?
How many types of sorting are there in c?
Can you please explain the difference between malloc() and calloc() function?
Why we write conio h in c?
what is the difference between class and unio?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
how to construct a simulator keeping the logical boolean gates in c
Is multithreading possible in c?
What is the difference between class and object in c?
How do you view the path?
How can I discover how many arguments a function was actually called with?
How can I pad a string to a known length?
Is c compiled or interpreted?
Should a function contain a return statement if it does not return a value?