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 / sunita shukla

Delete p deallocate memory pointed to by p and delete []p deallocate array. But delete p will delete only p[0]. Other array's Size-1 entries will not be deleted and this memory will leak.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between java and c++?

1091


What is meant by iomanip in c++?

1226


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1113


what is multi-threading in C++?

1061


What is :: operator in c++?

1063


What are the comments in c++?

992


Define a nested class.

1086


What is runtime errors c++?

1131


What is iostream in c++ used for?

1039


Can manipulators fall in love?

1027


Define 'std'.

1182


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

1056


Why do we use vector in c++?

1084


What is a manipulative person?

1023


What's the order in which the local objects are destructed?

1268