What are smart pointer? Whats its use?

Answer Posted / amit wagh

Smart Pointer is basically a class implementation, which
wraps around a pointer and provided functionalities like
ownership of allocated memory proper cleanup.
Smart pointers are used when dealing with memory allocated
on heap.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of object in c++?

684


Explain method of creating object in C++ ?

684


What is pure virtual function?

716


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

698


What is using namespace std in cpp?

639






Why c++ is the best language?

686


What information can an exception contain?

750


How does code-bloating occur in c++?

836


What is the full form of ios?

644


How do I run a program in notepad ++?

695


What is the use of register keyword with the variables?

636


Write about the local class and mention its use?

727


What is the difference between a definition and a declaration?

661


Describe delete operator?

707


What is a list c++?

670