Quote:
|
An l-value is not an address, but something that has an address. For example, assume x was declared as "int x". x is an l-value, however, &x is not (that would be an r-value as all numbers are). Conversely, if x was declared as "int * x", both x and *x are l-values. For me it's easiest to think of l-values as anything that can be placed to the left of an '=' and r-values as anything that cannot.
|
Well what do you know, you're right. I should really work with pointers more often, I've been out of practice for a few months. I'm just going to stop talking now.