why the memory allocated with new cant be freed using free()
Answer Posted / bharti
Because with new operator in C++ delete operator is used to
deallocate the memory. And with malloc() free() is used. S
it may not be supported by some of the compilers to free
memory with free() created by new.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the example of polymorphism?
What is the advantage of oop over procedural language?
can we make game by using c
What is the purpose of enum?
What is inheritance and how many types of inheritance?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is polymorphism used for?
What is encapsulation and abstraction? How are they implemented in C++?
How do you use inheritance in unity?
Why is polymorphism used?
Please send ford technologies placement paper 2 my mail id
Why is object oriented programming so hard?
What is a class oop?
any one please tell me the purpose of operator overloading
How many human genes are polymorphic?