zettelkasten
R Values And L Values
Last updated: 1/9/2025
These two different types of values explains a lot of what happens and why things are the way they are in C++
L-Values
L-values are values that are on the left side of the equation, they are values that are stored at a location in memory.
R-Values
R-values are values that are read-only and they are temporary, they are the results of expressions. Ex.
cpp
5 // <-- r-value(10 % 2) // <-- r-valueSee Also
- [[computer-science]]