Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are Lvalue and Rvalue in Golang?
Home
GoLang
What are Lvalue and Rvalue in Golang?
0
votes
asked
Aug 11, 2022
in
GoLang
by
SakshiSharma
What are Lvalue and Rvalue in Golang?
golang
lvalue
rvalue
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 11, 2022
by
SakshiSharma
Lvalue
Refers to a memory location
Represents a variable identifier
Mutable
May appear on the left or right side of the = operator
For example: In the statement x =20, x is an lvalue and 20 is an rvalue.
Rvalue
Represents a data value stored in memory
Represents a constant value
Always appears on the = operator’s right side.
For example, The statement 10 = 20 is invalid because there is an rvalue (10) left of the = operator.
...