why lvalue required as increment operand error? [duplicate]
问题 This question already has answers here : lvalue required as increment operand error (4 answers) Closed 5 years ago . Why lvalue required as increment operand Error In a=b+(++c++); ? Just Wanted to assign 'b+(c+1)' to 'a' and Increment 'C' by 2 at the same time. I'M A Beginner Just Wanted A Clarification About What "LVALUE ERROR" Actually Is? main() { int a=1,b=5,c=3; a=b+(++c++); printf("a=%d b= %d c= %d \n",a,b,c); } 回答1: Postfix increment binds tighter than prefix increment so what you