char c = 'a'; c is a lvalue, 'a' is a rvalue c = c + 1; // c on the left hand side is a lvalue // c on the right hand side is a rvalue
char c = 'a'; char& ref = c; // assign the lvalue of c to ref char c2 = c; // assign the rvalue of c to c2 ref = 'b'; // change the rvalue that ref refers to
int x = 10; intarray[3] = x;
(ch = cin.get()) != EOF; // compare new value of ch with EOF
x = y = z; // Is the same as: y = z; x = y;
x += 7; // Is the same as x = x + 7