what is LValue error?.
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
hello all, what is lvalue error?. is there Rvalue error too?. if yes plz give me some explanation about these 2 error types. Thanking u all. ComputerNewton
-
hello all, what is lvalue error?. is there Rvalue error too?. if yes plz give me some explanation about these 2 error types. Thanking u all. ComputerNewton
I can only assume you mean when the compiler is expecting an l-value on the left-hand side of an assignment:
i=10;
is fine so long as i was not defined as a constant. More obviously:10=3;
will give you an l-value error because 10 is not an l-value and therefore cannot be assigned to anything else. 10 is 10, and cannot be anything else!:-D I hope this helps, Zoltan