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
What is a set in c++?
what do you mean by volatile variable?
What is lazy initialization in c++?
What is the disadvantage of using a macro?
What is setw manipulator in c++?
Can recursive program be written in C++?
Why do we need function?
What is #include iostream?
Discussion on error handling of C++ .
What is the benefit of learning c++?
What are proxy objects in c++?
What are the characteristics of friend functions?
What are put and get pointers?
Distinguish between a # include and #define.
What are c++ tokens?