Smart Pointer

What is a smart pointer in C++ ?
Give an programme for how it can be used ?
ajaysoni032800Asked:
Who is Participating?
 
KangaRooCommented:
A smart pointer in C++ is an object that `behaves' like a pointer (you can dereference it with * and ->), but can also do some smart tricks, like deleting the object it holds when it is no longer needed.
0
 
ntdragonCommented:
what exectlly you want to know
0
 
ajaysoni032800Author Commented:
Comment accepted as answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.