What is the reasoning behind the naming of “lvalue” and “rvalue”?

前端 未结 6 889
清酒与你
清酒与你 2021-01-16 07:30

What is the reasoning behind the naming of \"lvalue\" and \"rvalue\" in C/C++ (I know how they function)?

6条回答
  •  轮回少年
    2021-01-16 08:12

    Back in the olden days, an "lvalue" meant something that could go on the left side of an assignment, and an "rvalue" meant something that could go on the right side of an assignment.

提交回复
热议问题