Answer Posted / gouthami..
The free() subroutine frees a block of memory previously allocated by the malloc subroutine. Undefined results occur if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will occur.
The realloc() subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines. Undefined results occur if the Pointer parameter is not a valid pointer.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the significance of classes in oop?
How do you answer polymorphism?
What are the data types in oop?
Prepare me a program for the animation of train
What is destructor example?
What is an advantage of polymorphism?
what type of questions
What is polymorphism used for?
What is purpose of inheritance?
What is encapsulation in oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is destructor oops?
class type to basic type conversion
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’.
What do you mean by overloading?