关于lvalue and rvalue
2019獨角獸企業重金招聘Python工程師標準>>>
lvalue :An object is a region of storage that can be examined and stored into.An lvalue does not necessarily permit modification of the object it designates: eg
An array type
An incomplete type
A const-qualified type
An object is a structure or union type and one of its members has a const-qualified type
rvalue:
The term rvalue refers to a data value that is stored at some address in memory. An rvalue is an expression that cannot have a value assigned to it.
lvalue 更代表的一個區域,雖然你不一定可以更改這個區域的內容,但你更清楚在語言層面更代表一個區域。
rvalue 更代表一個值,你更清楚在語言層面更代表一個數值
轉載于:https://my.oschina.net/invictuslee/blog/223070
總結
以上是生活随笔為你收集整理的关于lvalue and rvalue的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GitHub 车牌检测识别项目调研
- 下一篇: java 中的堆和栈