Which of the following C++ standards introduced smart pointers? 

  • C++03 
  • C++11 
  • C++14
  • C++98 
Smart pointers, like std::shared_ptr, std::unique_ptr, and std::weak_ptr, were introduced in C++11. They are part of the C++ Standard Library and are designed to manage the lifecycle of dynamically allocated objects, preventing memory leaks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *