1.Smart pointer is a c++ object, it has the ownership of raw pointer. It is used to ensure the leakage of resources like memory.
2. Smart pointer is allocated in stack, which handles the heap allocated pointer.
3. We do not required to call delete in order to destruct the smart pointer. Destructor get called auto maticatically when smart pointer goes out of its scope.
Ex. Smartptr ptr( new( int));
Smartptr is the name of the class.