What is a smart pointer?

Answer Posted / nashiinformaticssolutions

A smart pointer is a C++ class that manages the lifetime of a dynamically allocated object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can templates only be implemented in the header file?

896


What is wrapper class in c++?

836


Explain the properties and principles of oop.

765


Why do we need pointers?

773


What are references in c++?

905


What is struct c++?

777


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

895


Can we change the basic meaning of an operator in c++?

889


What is the default width for ouputting a long integer using the insertion operator?

990


What is the difference between C and CPP?

864


Write about the retrieval of n number of objects during the process of delete[]p?

814


What is split a string in c++?

949


When do you call copy constructors?

898


What is meant by const_cast?

890


What is the meaning of c++?

805