Answer Posted / fathimath fahima j
free :
#include <cstdlib>
Void free (void *ptr);
Free() function returns the memory
Pointed to by ptr to the heap.
Realloc :
#include<cstdlib>
Void *realloc(void *ptr,size_t size);
The realloc function changes the size of
the previously allocated memory pointed to by ptr to dat specified by size.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How long to learn object oriented programming?
Can we create object of interface?
write a C++ program for booking using constructor and destructor.
What is the point of polymorphism?
Can you explain polymorphism?
State what is encapsulation and friend function?
What are the 3 pillars of oop?
What are the two different types of polymorphism?
What do you mean by overloading?
What is destructor give example?
What are functions in oop?
What is constructor in oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Can bst contain duplicates?
What is overloading and its types?