Which of the following C++ versions introduced the auto keyword for automatic type deduction? 

  • C++03 
  • C++11 
  • C++14
  • C++98 
The auto keyword for automatic type deduction was introduced in C++11. It allows the compiler to automatically deduce the type of a variable based on its initializer, enhancing code readability and maintainability.
Add your answer
Loading...

Leave a comment

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