Intermediate C++
Q56 / 100

What is structured bindings (C++17)?

Correct! Well done.

Incorrect.

The correct answer is B) A syntax to unpack struct, array, or tuple members into named local variables: auto [a, b] = pair

B

Correct Answer

A syntax to unpack struct, array, or tuple members into named local variables: auto [a, b] = pair

Explanation

auto [x, y] = point; binds the members of point. Works with arrays, std::pair, std::tuple, and aggregates.

Progress
56/100