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...

Difference between delete and delete[]?

Answer Posted / vikas

If p is pointer to an array and is allocated memory on
heap, then delete p would call the destructor of the first
element but will free up the whole block. More info at:

http://www.cppquestions.com/viewtopic.php?f=27&t=13

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auto type c++?

1075


what are function pointers?

973


What is iterator in c++?

1056


What is the default width for ouputting a long integer using the insertion operator?

1170


What is exception handling? Does c++ support exception handling?

972


What do you mean by function and operator overloading in c++?

990


What does override mean in c++?

1012


How would you differentiate between a pre and post increment operators while overloading?

1075


What is a template in c++?

1732


What are the benefits of c++?

981


List different attributes in C++?

1014


What is java and c++?

1095


What is ostream in c++?

957


What are the advantages of c++ over c?

1011


What does #define mean in c++?

1185