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
Is data hiding and abstraction same?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What does enum stand for?
What is the renewal class?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is constructor overloading in oop?
What is the problem with multiple inheritance?
What is oops in simple words?
How can you overcome the diamond problem in inheritance?
Why do we use oops?
what are the ways in which a constructors can be called?
What is a class oop?
What is overriding in oops?
What is debug class?what is trace class? What differences are between them? With examples.
When not to use object oriented programming?