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 abstraction in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is the difference between encapsulation and polymorphism?
Can we create object of interface?
What is abstraction oop?
Explain the advantages of inheritance.
What is the difference between inheritance and polymorphism?
What is super in oop?
What is class and object with example?
What is the difference between procedural programming and oops?
What is the point of oop?
What does no cap mean?
What are the 3 principles of oop?
What is object in oop?
How do you explain polymorphism?