Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How would perform Pattern Matching in C++?

1310


Write a program which uses functions like strcmp(), strcpy()? etc

1150


What is meant by a delegate?

1139


Should you pass exceptions by value or by reference?

1180


How long it will take to learn c++?

1097


What is a dll entry point?

1065


What are the restrictions apply to constructors and destructors?

1120


Why do we use iterators?

1130


Can notepad ++ run c++?

1147


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

1182


What is searching? Explain linear and binary search.

1036


Define namespace in c++?

1104


Explain the use of virtual destructor?

1121


What is the difference between interpreters and compilers?

1267


What is difference between array and vector in c++?

1073