
Logical Operators 3.13
There is a compound assignment operator wherein two operators are combined into one
statement. For example, x+=10; means x=x+10.
3.8.3 Chained Assignment
The assignment operator together with compound assignment operators can be used in
chained assignment statement. For example: int x = y = z = 0; this statement is
equivalent to statement x= ( y = ( z = 0)).
Note that assignment always takes place from right to left. The first assignment is z = 0;
its reference is passed to y, so that y is also equated to 0, and then lastly x = 0.
3.8.4 Relational Operators
The relational operators are : > >= < and <=.
These four relational ...