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 is the difference between an enumeration and a set of pre-processor # defines?
What are static variables?
Distinguish between new and malloc and delete and free().
Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;
Declare a class vehicle and make it an abstract data type.
What are associate containers?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is the use of default constructor?
How const functions will be treated by compiler?
What is data type in c++?
which operator is used for performing an exponential operation a) > b) ^ c) none
Will c++ be replaced?