What are smart pointer? Whats its use?



What are smart pointer? Whats its use?..

Answer / 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

More C++ General Interview Questions

Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


Ask to write virtual base class code?

0 Answers   Satyam,


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

0 Answers  


What is a hash function c++?

0 Answers  


What methods can be overridden in java?

0 Answers  






What happens when you make call 'delete this;'?

0 Answers  


Which ide is best for c++?

0 Answers  


What is a pointer how and when is it used?

0 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


What is binary object model?

0 Answers  


State the difference between pre and post increment/decrement operations.

0 Answers  


What are the basic data types used in c++?

0 Answers  


Categories