您的位置:首页 > 产品设计 > UI/UE

rvalue and lvalue

2013-10-02 22:05 281 查看
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).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: