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 Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is a superclass in oop?
What is object in oops?
What is encapsulation selenium?
What is property in oops?
Prepare me a program for the animation of train
What is encapsulation with real life example?
What is encapsulation process?
What is destructor give example?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Is this job good for future? can do this job post grduate student?
What is the diamond problem in inheritance?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is static modifier?
What is polymorphism what are the different types of polymorphism?