Tuesday, November 23, 2010

Taking an Address of an Lvalue

You can take the address of (&) an lvalue, but not an rvalue.

An lvalue refers to an object. An rvalue refers to the value in an object. lvalues can be implicitly converted to rvalues, but rvalues cannot be implicitly converted to lvalues.


No comments:

Post a Comment