If
void main()
{ 
  int i=2,j=4; 
  i=+++i+j; //is not an error 
  i=---i+j; // is a L-value required error..
}
could anyone please explain in detail the concept behind multiple increments and decrements..
If
void main()
{ 
  int i=2,j=4; 
  i=+++i+j; //is not an error 
  i=---i+j; // is a L-value required error..
}
could anyone please explain in detail the concept behind multiple increments and decrements..
 
    
     
    
    I think the parser is not able to parse it in the format it wants it to be. Try using parenthesis as below. It would work.
i=-(--i)+j;
