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
Will the following program execute?
What is abstract class in c++?
What is oops in c++?
What size is allocated to the union variable?
What is an operator function? Describe the function of an operator function?
What is a Default constructor?
By using c++ with an example describe linked list?
What is #include cstdlib in c++?
What is the function of I/O library in C++ ?
what are Operators and explain with an example?
Is it possible to use a new for the reallocation of pointers ?
Why struct is used in c++?
List different attributes in C++?
what is data abstraction in C++?
What is operator overloading in c++ example?