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 the main use of c++?
What is static in c++?
What is different in C++, compare with unix?
What is a breakpoint?
How can you link a c program with a c function?
What is prototype for that c string function?
what are Access specifiers in C++ class? What are the types?
Explain abstraction.
What is setbase c++?
Explain what is oop?
What is c++ in english?
Differentiate between a constructor and a destructor in c++.
Explain the properties and principles of oop.
What is private, public and protected inheritance?
To which numbering system can the binary number 1101100100111100 be easily converted to?