左值与右值在C/C++中表示位于赋值运算符两侧的两个值,赋值号左边的就叫左值(left-value),右边的就叫右值(right-value)。比如:(1) int b = 3;(2) int a = b;第(2)行代码,a为左值,b为右值。不过左值与右值的含义有了更深层次的含义: L-value中的L指的是Location,表示可寻址。a value (computer science)that has an address. R-value中的R指的是Read,表示可读。in computer science, a value that does not have an address in a computer language.