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 |
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Which field is used in c++?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Explain terminate() and unexpected() function?
Can comments be nested?
What is the output of the following program? Why?
Write about all the implicit member functions of a class?
What is the rule of three?
What is the latest version on c++?
What happens if a pointer is deleted twice?
Why is c++ difficult?
Explain the term memory alignment?