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.
Reference:
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/lvalue.htm
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment