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|
Explain the scope of resolution operator.
Explain the difference between c++ and java.
What is == in programming?
What is a c++ map?
What is enum c++?
What c++ library is string in?
What is a memory leak c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
Explain the problem with overriding functions
Should I learn c or c++ first?
How to give an alternate name to a namespace?
What does override mean in c++?
How do I use arrays in c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
Explain how an exception handler is defined and invoked in a Program.