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.
Loading...
Related Quiz
- Which of the following statements about the struct and class keywords is true?
- What is the primary purpose of the ofstream class in file handling?
- When a class B is inherited publicly from a class A, then the protected members of class A will become _______ in class B.
- A _______ block is used to enclose the code that might throw an exception.
- Consider enum class in C++11 and above. Which of the following is a true statement about its functionality?