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 byval and byref? What are differences between them?
to find out the minimum of two integer number of two different classes using friend function
How oops is better than procedural?
Can we define a class within the interface?
What does it mean when someone says I oop?
What is solid in oops?
Advantage and disadvantage of routing in telecom sector
What is multilevel inheritance?
When not to use object oriented programming?
What is the real life example of polymorphism?
Can you inherit a private class?
What is coupling in oops?
Is html an oop?
How do you define a class in oop?
How to hide the base class functionality in Inheritance?