Answer Posted / 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 View All Answers
Why is "using namespace std;" considered bad practice?
Where the memory to the static variables is allocated?
Why is standard template library used?
What is problem with overriding functions?
Describe the advantage of an external iterator.
What is pointer to member?
List different attributes in C++?
Where Malloc(), Calloc(), and realloc() does get memory?
Does c++ vector allocate memory?
What is the use of main function in c++?
Why struct is used in c++?
What is helper in c++?
Differentiate between the message and method in c++?
What is const in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?