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 the use of "new" operator?

1131


Explain one method to process an entire string as one unit?

1585


Is it possible for the objects to read and write themselves?

1099


Can non graphic characters be used and processed in C++?

1193


Difference between a homogeneous and a heterogeneous container

1142


Why do we use classes in c++?

1061


Define whitespace in C++.

1211


Define virtual constructor.

1095


What is == in programming?

1013


What apps are written in c++?

1099


Which is better c++ or java?

982


What is a Default constructor?

1591


what is the difference between overloading & overriding? give example.

1186


What is a lambda function c++?

1108


Why are arrays usually processed with for loop?

1235