34,333
edits
Changes
→Objective-C Expressions
int myresult = 1 + 2;
</pre>
<google>IOSBOX</google>
In the above example the (+) operator is used to add two operands (1 and 2) together. The assignment operator (=) subsequently assigns the result of the addition to an integer variable named myresult. The operands could just have easily been variables (or a mixture of constants and variables) instead of the actual numerical values used in the example.