What issue do auto_ptr objects address?
Answers were Sorted based on User's Feedback
Answer / ravi
auto_ptr addresses, issues relating to memory management
like, Memory Leaks and Dangling pointers.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
auto_ptr also takes care of auto-initializatio and
exception safety.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is ofstream c++?
sizeof- is it functioning statically or dynamically?
What is auto used for in c++?
What are the advantages of early binding?
How do you decide which integer type to use?
What is object file? How can you access object file?
What is binary search in c++?
What is function prototyping?
Is atoi safe?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
What is the return value of the insertion operator?
Explain the operation of overloading of an assignment operator.