lol..... ++x++... Will u plz explain me whats the logic behind this....
And yes as the above member said LValue means the value in the left side.... So change ur code by break up ur logic as ++x,x++ so...
++x++ lol
postfix x++
prefix ++xx
What are you trying to do? ++x++ is invalid. You can only apply one of them at a time.
An lvalue is anything that can come on the left side of an '=' sign. When you use x++, it is interpreted as 'x = x + 1'. Here, x is an lvalue.
When you use ++x++, it tries '++x = x + 1', but ++x is not an lvalue, hence the error.
Friends i am getting an ERROR : L value required for the below program at line no :3.
void main(){
int x=5;
++x++;
printf("X = %d ",x);
}
Can any one please explain me the concept of L value.