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 static variables?

1083


Describe new operator and delete operator?

1030


Explain how the virtual base class is different from the conventional base classes of the opps.

1104


In a function declaration what does extern means?

982


What is the protected keyword used for?

1061


what are the characteristics of Class Members in C++?

995


What is the use of :: operator in c++?

1058


What do you mean by funtion prototype?

1001


Describe Trees using C++ with an example.

1087


What are the extraction and insertion operators in c++?

946


What is difference between malloc()/free() and new/delete?

1114


What is class definition in c++ ?

1029


What are built-in functions? What is the syntax for the definition?

1027


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2581


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1107