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

what is smart pointer & use of the smart pointer ???

Answer Posted / satya

Smart pointers are objects which store pointers to
dynamically allocated (heap) objects. They behave much like
built-in C++ pointers except that they automatically delete
the object pointed to at the appropriate time. Smart
pointers are particularly useful in the face of exceptions
as they ensure proper destruction of dynamically allocated
objects. They can also be used to keep track of dynamically
allocated objects shared by multiple owners.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are virtual functions in c++?

1235


What is the history of c++?

1133


How do you initialize a string in c++?

1051


How many namespaces are there in c++?

1125


Define token in c++.

1210


What is general format for a prototype?

1098


What is c++ programming language?

1154


How the programmer of a class should decide whether to declare member function or a friend function?

1181


What is c++ coding?

1275


What is fflush c++?

1077


Explain register storage specifier.

1052


Why do we use vector in c++?

1125


How we can differentiate between a pre and post increment operators during overloading?

1156


Specify some guidelines that should be followed while overloading operators?

1262


What is the use of this pointer in c++?

1050