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
How would perform Pattern Matching in C++?
Write a program which uses functions like strcmp(), strcpy()? etc
What is meant by a delegate?
Should you pass exceptions by value or by reference?
How long it will take to learn c++?
What is a dll entry point?
What are the restrictions apply to constructors and destructors?
Why do we use iterators?
Can notepad ++ run c++?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What is searching? Explain linear and binary search.
Define namespace in c++?
Explain the use of virtual destructor?
What is the difference between interpreters and compilers?
What is difference between array and vector in c++?