Home › Forums › C Programming › Lvalue and Rvalue › Re: Re: Lvalue and Rvalue
April 12, 2010 at 10:11 pm
#3648
GWILouisaxwzkla
Participant
An L-value violation is easy , just put a constant on the left hand side of an equation:
1 2 3 4 5 6 7 | <br /> const int myInt = 9;<br /> <br /> ..<br /> myInt = 3; // need an L-value here<br /> <br /> |
You need something that is assignable for a L-value. R-value violations are tougher , I’ll have to look into this…….