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 three forms of cin.get() and what are their differences?
Explain the advantages of using friend classes.
Is swift faster than go?
Write about the members that a derived class can add?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Do we have private destructors?
What is null pointer and void pointer?
What is a pointer with example?
Why do we use structure in c++?
What is the benefit of encapsulation?
whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };
what are Access specifiers in C++ class? What are the types?