3 ms·
I'm sure there are some complex exceptions, but as a starter, you can think of lvalues as "anything you can assign to" (the l basically stands for left, as in,
by simiones 8y ago
I'm sure there are some complex exceptions, but as a starter, you can think of lvalues as "anything you can assign to" (the l basically stands for left, as in, "can appear on the left of an assignment"). So, if you have something like `foo(val) = 10`, then `foo(val)` is an lvalue.
- mannykannot 8y agoOne of the complications is that if you take an l-value and const-qualify it, it is still an l-value (but not a modifiable l-value.) https://www.geeksforgeeks.org/lvalue-and-rvalue-in-c-language/ https://www.geeksforgeeks.org/lvalue-and-rvalue-in-c-languag...