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
Can private class be inherited?
What is stream in oop?
What are the types of abstraction?
What is pure oop?
class type to basic type conversion
when to use 'mutable' keyword and when to use 'const cast' in c++
What is polymorphism programming?
What is the full form of oops?
Is abstract thinking intelligence?
What is object in oop with example?
What is the point of polymorphism?
What does I oop mean?
What is polymorphism oop?
Can an interface inherit a class?
what are the different types of qualifier in java?