Refrences
Refrences
- An alias (an alternate name) for an object.
- If we assign to a reference, we change the state of the referent (the referent is the object to which the reference refers).
- If we return a reference, the function call can appear on the left hand side of an assignment operator
- References are usually preferred over pointers whenever you don't need "reseating".

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home