34,333
edits
Changes
→Compound Assignment Operators
== Compound Assignment Operators ==
<google>IOSBOX</google>
In an earlier section we looked at the basic assignment operator (=). Objective-C provides a number of operators designed to combine an assignment with a mathematical or logical operation. These are primarily of use when performing an evaluation where the result is to be stored in one of the operands. For example, one might write an expression as follows: