Answer Posted / praviss
An existing block of memory which was allocated by malloc() subroutine, will be freed by free() subroutine. In case , an invalid pointer parameter is passed, unexpected results will occur. If the parameter is a null pointer, then no action will occur.
Where as the realloc() subroutine allows the developer to change the block size of the memory which was pointed to by the pointer parameter, to a specified bytes size through size parameter and a new pointer to the block is returned. The pointer parameter specified must have been created by using malloc(),calloc() or realloc() sub routines and should not deallocated with realloc() or free() subroutines. If the pointer parameter is a null pointer, then no action will occur.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are oops functions?
Is data hiding and abstraction same?
Explain the advantages of inheritance.
Why we use classes in oop?
What is the important feature of inheritance?
is there any choice in opting subjects like 4 out of 7
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is property in oops?
What is the main feature of oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the benefits of polymorphism?
What is polymorphism in oop example?
What is object and class in oops?
Prepare me a program for the animation of train
What is object-oriented programming? Webopedia definition