Beginner C++
Q36 / 100

What does auto mean when declaring a variable in C++11?

Correct! Well done.

Incorrect.

The correct answer is B) The compiler deduces the type from the initializer

B

Correct Answer

The compiler deduces the type from the initializer

Explanation

auto x = 3.14; deduces x as double. auto reduces verbosity, especially with iterators and complex template types.

Progress
36/100