C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers


10,705 users

What happens if you assign to a reference

0 votes
can anybody tell me What happens if you assign to a reference?

asked by anonymous

1 Answer

0 votes
Best answer
You change the state of the referent (the referent is the object to which the reference refers).

Remember: the reference is the referent, so changing the reference changes the state of the referent. In compiler writer lingo, a reference is an "lvalue" (something that can appear on the left hand side of an assignment operator).
answered by daniel Advisor (5,600 points)

Related questions

0 votes
1 answer 41 views
0 votes
2 answers 40 views
0 votes
1 answer 73 views
0 votes
1 answer 433 views
+1 vote
1 answer 3,775 views
3,775 views asked by sandy Newbie (130 points)