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 |
Please explain the reference variable in c++?
How do I start a c++ project?
What is difference between c++ 11 and c++ 14?
How one would use switch in a program?
How do you add an element to a set in c++?
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
What is meant by entry controlled loop? What all C++ loops are exit controlled?
write a C++ programming :if the no is between 32 to 50 it will be odd.
Explain how to initialize a const data member.
What is realloc() and free()? What is difference between them?
Is c++ built on c?
What kind of jobs can I get with c++?