tags:

views:

82

answers:

2

Possible Duplicates:
What are rvalues, lvalues, xvalues, glvalues, and prvalues?
lvalue and rvalue
difference between c's expression and c++'s expression

On executing the program below, I got error an message like "required Lvalue is missing in main function"

main()
{
    int i;
    printf("%d",++i++);
}

Please tell me what are rvalues and lvalues. If there are any other values of this kind Please explain that also.

A: 

http://www.devx.com/tips/Tip/5696

BarsMonster
It's really helpfull friend.Thank you
NEO
A: 

i thing ++i not lvalue so (++i)++ is error.

onder