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

How are virtual functions implemented in c++?

0 Answers  


What is the use of object in c++?

0 Answers  


How does java differ from c and c++?

0 Answers  


We use library functions in the program, in what form they are provided to the program?

0 Answers  


Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.

0 Answers   An-Najah National University,






How do you write a function that can reverse a linked-list?

0 Answers  


Are strings immutable in c++?

0 Answers  


Describe the advantage of an external iterator.

0 Answers  


What is constructor in C++?

0 Answers  


What are the uses of pointers?

0 Answers  


How do you initialize a string in c++?

0 Answers  


Can you Mention some Application of C/C++?

0 Answers  


Categories