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 invoke a base member function from a derived class in which you have not overridden that function?
What are the basics concepts of OOPS?
What is constructor and destructor in c++?
How do you define/declare constants in c++?
What is virtual table?
Difference between strdup and strcpy?
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What is class in c++ with example?
What is protected inheritance?
Can we overload operator in c++?
Explain the concept of inheritance in C++.
Explain rtti.