Every expression is either an lvalue or an rvalue.
An lvalue is an expression that represents an object that can be both examined and changed. A modifiable lvalue is an expression representing an object that can be changed. It is typically the left operand in an assignment expression, hence the 'l' in term, lvalue. For example, arrays and const objects are not modifiable lvalues, but static int objects are.
All assignment operators evaluate their right operand and assign that value to their left operand. The left operand must evaluate to a reference to an object.
The address operator (&) requires an lvalue as an operand while the increment (++) and the decrement (--) operators require a modifiable lvalue as an operand.
An rvalue is defined as the value of an expression. An rvalue cannot be modified during the execution of the program. It is typically the right operand in an assignment expression, hence the 'r' in the term rvalue. An example of an rvalue would be the keyword and Boolean type false. The value of false will always be taken as 0 and cannot be modified to take on a different value.
int y = 0; // This is an example of an lvalue bool found = false // This is an example of an rvalue
