Question: Describe the relationship between lvalue and rvalue.

  1. An lvalue may appear only on the left-hand side of an assignment; an rvalue may appear only on the right-hand side.
  2. An lvalue may appear only on the left-hand side of an assignment; an rvalue may appear on either the left-hand or right-hand side.
  3. An lvaue and an rvalue may appear on either left-hand or right-hand side of an assignment.
  4. An lvalue may appear on the left-hand or right-hand side of an assignment; an rvalue may appear only on the right-hand side.

Answer: The correct answer of the above question is Option D:An lvalue may appear on the left-hand or right-hand side of an assignment; an rvalue may appear only on the right-hand side.