Intermediate C++
Q45 / 100

What are lvalue and rvalue in C++?

Correct! Well done.

Incorrect.

The correct answer is B) lvalue: has a persistent address/identity; rvalue: a temporary without a persistent address

B

Correct Answer

lvalue: has a persistent address/identity; rvalue: a temporary without a persistent address

Explanation

lvalues persist beyond an expression (you can take their address). rvalues are temporaries. Move semantics and && references exploit rvalues.

Progress
45/100