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 the purpose of ios::basefield in the following statement?
Is atoi safe?
Describe the advantage of an external iterator.
Specify different types of decision control statements?
What is the difference between a type-specific template friend class and a general template friend class?
What does std :: flush do?
What are friend classes? What are advantages of using friend classes?
What do you mean by late binding?
Why null pointer is used?
When is the copy constructor called?
What is setbase c++?
Can we inherit constructor in c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What are the advantages of using pointers in a program?
Why do we use classes in programming?