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 / laxman

delete is only just to delete a variable which is created
by new operator. delete[] , it deletes the array where the
varaialbe points .

Is This Answer Correct ?    24 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of pointers?

1031


What is #include iomanip?

1004


Which function should be used to free the memory allocated by calloc()?

1021


Explain object slicing in c++?

1056


What is prototype in c++ with example?

1140


What is the full name of logo?

1118


Why do we use using namespace std in c++?

1074


What is null pointer and void pointer and what is their use?

1093


Do you know what are static and dynamic type checking?

1061


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1415


What is vector pair in c++?

1221


What are friend classes? What are advantages of using friend classes?

1102


What is lambda expression c++?

1052


What are c++ data types?

1158


What is the basic structure of a c++ program?

1139