3 Reference

A reference is ``kind of like'' a pointer, but it is not. A reference is more like an ``alias'' of an object. If a reference appears on the left hand side of an assignment operator, it is used to specify where to store the result of the right hand side. If a reference appears on the right hand side, it specifies the value at the location that it refers to.



Subsections

Copyright © 2006-09-19 by Tak Auyeung