Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Value (computer science)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== {{Anchor|lrvalue}}Assignment: l-values and r-values === Some languages use the idea of '''l-values''' and '''r-values''', deriving from the typical mode of evaluation on the left and right-hand side of an assignment statement. An l-value refers to an object that persists beyond a single expression. An r-value is a temporary value that does not persist beyond the expression that uses it.<ref>{{cite web|title=Lvalues and Rvalues (Visual C++)|url=https://msdn.microsoft.com/en-us/library/f90831hc.aspx|website=Microsoft Developer Network|access-date=3 September 2016}}</ref> The notion of l-values and r-values was introduced by [[Combined Programming Language]] (CPL). The notions in an expression of r-value, l-value, and r-value/l-value are analogous to the [[Parameter (computer programming)|parameter]] modes of input parameter (has a value), [[output parameter]] (can be assigned), and input/output parameter (has a value and can be assigned), though the technical details differ between contexts and languages.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)