现在的位置: 首页 > 综合 > 正文

rvalue and lvalue

2013年02月07日 ⁄ 综合 ⁄ 共 319字 ⁄ 字号 评论关闭

In C++, the distinction is less simple. In C++, an lvalue expression yields an object or a function.However, some lvalue, such as const objects, may not be the left-hand operand of an assignment.Moreover,some expressions yield objects as an rvalue,we use
the object's value(its contents).When we use an object as an lvalue,we use the object's identity(its location in memory).

抱歉!评论已关闭.