Home Forums C Programming Lvalue and Rvalue Re: Re: Lvalue and Rvalue


An L-value violation is easy , just put a constant on the left hand side of an equation:

const int myInt = 9;

myInt = 3; // need an L-value here

You need something that is assignable for a L-value. R-value violations are tougher , I’ll have to look into this…….