For ex won't the compiler complain in the foll. code.
int i, j; int k = 0; j = 2; k = j = i = 1;
It means that you cannot use the uninitialized variable on the right hand side of the = operator. Now in the above code, the compiler interprets it as
k = j = i = 1 as k = (j = (i = 1)) and it works. As you can see that the variable i is not at the righthand side of the operator and by the time it comes to the right had side of the = operator, it already has the value set to 1.
Hope you got it.
Regards, Jothi Shankar Kumar. S [ November 01, 2006: Message edited by: Jothi Shankar Kumar Sankararaj ]