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
Why do we use polymorphism in oops?
What is abstraction oop?
Can an interface inherit a class?
Why we use classes in oop?
Why is abstraction used?
How do you achieve runtime polymorphism?
What is encapsulation in simple terms?
What does enum stand for?
Whats oop mean?
What is encapsulation in ict?
What do you mean by overloading?
What is oops in simple words?
What is a class oop?
#include
Which language is pure oop?