Intermediate C++
Q64 / 100

What does decltype do?

Correct! Well done.

Incorrect.

The correct answer is B) Deduces the declared type of an expression without evaluating it

B

Correct Answer

Deduces the declared type of an expression without evaluating it

Explanation

decltype(expr) gives the type of the expression. Used in trailing return types: auto add(T a, U b) -> decltype(a + b).

Progress
64/100