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 are templates? where we should use it?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
Why do you use the namespace feature?
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
Why we use #include iostream in c++?
List the features of oops in c++?
What do you mean by translation unit?
Explain the scope resolution operator?
What is the difference between struct and class?
What is near, far and huge pointers? How many bytes are occupied by them?