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 are smart pointers?

Answer Posted / nashiinformaticssolutions

• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a macro differs from a template?

1172


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1082


What is the rule of three?

1001


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

2200


What is pointer to array in c++?

1161


Give an example of run-time polymorphism/virtual functions.

1004


What is a forward referencing and when should it be used?

1166


Can you pass a vector to a function?

982


Does there exist any other function which can be used to convert an integer or a float to a string?

1076


What is the difference between new() and malloc()?

2074


What is the benefit of c++?

1134


What is the best c c++ compiler for windows?

1055


What is abstraction in c++ with example?

1128


Will a catch statement catch a derived exception if it is looking for the base class?

1009


What is virtual function? Explain with an example

1099