hi ...
can anyone please tell what are Lvalue and Rvalue errors in c and c++ ???
joshilay
0
Light Poster
Recommended Answers
Jump to PostLike
3 = myVariable;
Will generate an lvalue error, because you can't assign to a numeric constant.You can't assign to a function, or assign to an array either.
Jump to Posthi ...
can anyone please tell what are Lvalue and Rvalue errors in c and c++ ???Lvalue means location value. And Rvalue means read value.
Suppose the code is
int i;
i=5;
here i is lvalue and 5 is Rvalue.
the code 5=i;
generates error lvalue required.
All 5 Replies
Salem
5,138
Posting Sage
Grunt
commented:
Helps
+1
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Grunt
commented:
Helps
+1
Grunt
19
Junior Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
himanjim
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.