Please note here that the assignment operator has right-to-left
associativity;
that is, here
counter2 is assigned a value of 1 first and then it is assigned to the variable counter1.
Arithmetic Assignment Operatorsºº
C provides arithmetic assignment operators that also shorten expressions.
For example,
counter = counter + 50;
Can also be written as counter += 50;
Table 2.3
shows the arithmetic assignment operators.
Do'stlaringiz bilan baham: