Changes

Jump to: navigation, search

The Basics of Objective-C Programming (iOS4 iPhone)

23 bytes added, 13:11, 25 March 2011
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.

Navigation menu