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 my own zero-argument manipulator that should work same as hex?

0 Answers  


Is linux written in c or c++?

0 Answers  


Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

4 Answers   Microsoft,


how to connect with oracle 9i with server in socket program in c/c++

0 Answers   3i Infotech,


What is the difference between object-oriented programming and procedural programming?

0 Answers  






What data encapsulation is in c++?

0 Answers  


Explain the static member function.

0 Answers  


Can a program run without main in c++?

0 Answers  


Explain shallow copy?

0 Answers  


What gives the current position of the put pointer?

0 Answers  


What is DlgProc?

0 Answers   C DAC,


There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.

2 Answers   Nagarro,


Categories