Shall we use 'free' to free memory assigned by new, What are
the further consequences??
Answer Posted / guest
Yes we can use free which was assigned by new.but in this
case no destrctor will be called as free doesn't call this.
So it is recommended that we should not use free if we
allcoate the memory using new.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is split a string in c++?
Write about the local class and mention its use?
Is c++ a pure oop language?
Write a program which uses Command Line Arguments
What is the v-ptr?
What is namespace & why it is used in c++?
what are function pointers?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What is the difference between multiple and multilevel inheritance in c++?
What is a .h file c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What are manipulators in c++ with example?
How can you link a c++ program to c functions?
Write about the use of the virtual destructor?
What is the full name of logo?