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

What is split a string in c++?

1131


Write about the local class and mention its use?

1018


Is c++ a pure oop language?

1025


Write a program which uses Command Line Arguments

1115


What is the v-ptr?

1106


What is namespace & why it is used in c++?

1041


what are function pointers?

979


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1270


What is the difference between multiple and multilevel inheritance in c++?

1087


What is a .h file c++?

994


write a porgram in c++ that reads an integer and print the biggest digit in the number

2209


What are manipulators in c++ with example?

1008


How can you link a c++ program to c functions?

1063


Write about the use of the virtual destructor?

961


What is the full name of logo?

1066