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 can we check whether the contents of two structure variables are same or not?
write the programme that convert a interger to biniry number
Write a C++ Program to check whether a number is prime number or not?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Do vectors start at 0 c++?
What is the use of volatile variable?
What are Binay tress and B trees? Diff between them?
Which software is best for c++ programming?
How size of a class can be calulated?
What do the keywords volatile and mean mutable?
What are the two types of comments, and how do they differ?
What is the use of setfill in c++?