What does lvalue mean in c++ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What does lvalue mean in c++

23rd Jun 2018, 9:40 AM
Suraj Manchala
Suraj Manchala - avatar
1 Réponse
+ 2
Something like "whatever can go left of the equals sign", so, things you can assign to. In `a = 4`, `a` is an lvalue. As always in C++ its not that simple but it's a good approximation. "rvalue" would be the things that can't go left of an equals sign. `4 = 5` would error, because `4` is not an lvalue.
23rd Jun 2018, 11:14 AM
Schindlabua
Schindlabua - avatar