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 const in c++?

1107


Why main function is special in c++?

1125


Which sort does c++ use?

1019


Does c++ have string data type?

1106


Is c or c++ more useful?

1051


What is the best c++ book for beginners?

1150


What is the use of c++ programming language in real life?

1051


What is meant by a delegate?

1093


Explain Memory Allocation in C/C++ ?

1071


Explain the purpose of the keyword volatile.

1171


Explain the static storage classes in c++.

1271


Is c++ used anymore?

1095


How would you obtain segment and offset addresses from a far address of a memory location?

1077


Can char be a number c++?

1045


Name the implicit member functions of a class.

1085