B
boltar2003
Perhaps this is a stupid question, but can someone explain why the
operator evaluation order differs for assignment compared to mathematic
operators when there is only a single operator type in the expression?
Eg:
a1 = a2 = a3 = a4 will evaluate as a3=a4, a2=a3, a1=a2
but
a1 + a2 + a3 + a4 will evaluate as a1=a2, a1=a3, a1=a4
Why the difference?
B2003
operator evaluation order differs for assignment compared to mathematic
operators when there is only a single operator type in the expression?
Eg:
a1 = a2 = a3 = a4 will evaluate as a3=a4, a2=a3, a1=a2
but
a1 + a2 + a3 + a4 will evaluate as a1=a2, a1=a3, a1=a4
Why the difference?
B2003