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 use of overloading?
How long to learn object oriented programming?
program for insertion ,deletion,sorting in double link list
What is oops concept with example?
What is meant by multiple inheritance?
What is the important feature of inheritance?
What is difference between pop and oop?
What is oops?what is its use in software engineering?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is oops with example?
What are benefits of oop?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What are the two different types of polymorphism?
What is polymorphism oop?
What does and I oop mean in text?