search
Login

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

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

thanks..
asked 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 Advisor 5.6k points 1 7 14

Related questions

0 votes
1 answer 45 views
0 votes
2 answers 43 views
0 votes
1 answer 76 views
0 votes
1 answer 447 views
1 vote
1 answer 3.8K views
3.8K views
please give me a defination of reference variable.
asked sandy Newbie 130 points 1 1 3
...