Question.3
A developer iterates over a sensor buffer:
Without auto:
std::array<SensorData, 32>::iterator it = buffer.begin();
With auto:
auto it = buffer.begin();
What is the primary benefit?
Select Answer
auto is faster at runtime
Readability -- the complex iterator type is deduced automatically; both compile to identical code
auto uses less memory for the iterator
auto allows the iterator type to change at runtime