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

3,749 questions

4,049 answers

114 comments

10,705 users

What happens if you assign to a reference

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

thanks..
asked May 28, 2011 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 May 28, 2011 by daniel Advisor (5,600 points)

Related questions

0 votes
1 answer 41 views
41 views asked May 28, 2011 by anonymous
0 votes
2 answers 39 views
39 views asked Nov 22, 2010 by anonymous
0 votes
1 answer 72 views
0 votes
1 answer 428 views
+1 vote
1 answer 3,774 views
3,774 views asked May 4, 2010 by sandy Newbie (130 points)
...