What is realloc() and free()? What is difference between them?
Answer Posted / hrpynux@gmail.com
The free subroutine frees a block of memory previously allocated by the malloc subroutine. The realloc () function is used to allocate memory and has the following prototype: void * realloc (void * ptr, unsigned int num);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can turbo c++ run c program?
What happens if a pointer is deleted twice?
Which is best ide for c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
Explain about Virtual Function in C++?
What data encapsulation is in c++?
What is the use of structure in c++?
Explain Memory Allocation in C/C++ ?
How can you say that a template is better than a base class?
What are the vectors in c++?
Is string data type in c++?
Can circle be called an ellipse?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Is c++ faster than c?
We use library functions in the program, in what form they are provided to the program?