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
what is difference between class template and template class?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Why is polymorphism important in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
Why we use classes 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
What is data binding in oops?
What is polymorphism what are the different types of polymorphism?
What is overriding vs overloading?
What is polymorphism used for?
Get me an image implementation program.
Why do we need oop?
Can a destructor be called directly?
Why do we use polymorphism?
What are the two different types of polymorphism?