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 |
What are the uses of static class data?
How is data hiding achieved in c++?
What is long in c++?
What is function overloading c++?
What is the difference between a type-specific template friend class and a general template friend class?
Differentiate between a pointer and a reference with respect to c++.
What do you understand by zombie objects in c++?
Which function should be used to free the memory allocated by calloc()?
what is data abstraction in C++?
How can a called function determine the number of arguments that have been passed to it?
What is the difference between ++ count and count ++?
Define a nested class.