谁能具体的讲一讲C++中的左值和右值
迷茫
迷茫 2017-04-17 12:06:11
0
4
712

谁能具体的讲一讲C++中的左值和右值

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
迷茫

http://www.cnblogs.com/catch/p/3500678.html

迷茫

What are the left and right values?
Equal sign expression?

黄舟

Lvalue is a value that can be placed on the left side of the equal sign (for example, an int variable can change its value or assign its value to others).
Rvalues ​​are values ​​that can only be placed on the right side of the equal sign (such as the constant 0, which cannot be placed on the left side of the equal sign).

For example, "0=i" is wrong, and "i=0" is right.
Don’t worry about this issue, it’s just a way of saying it.

巴扎黑

Things that cannot be assigned are called rvalues ​​(meaning they can only be on the right side of the assignment number), and others are called lvalues.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!