Changes

Jump to: navigation, search

Objective-C 2.0 Operator Precedence

441 bytes added, 15:41, 9 October 2009
Objective-C Operator Precedence and Associativity
</table>
 
As we can see from the table, when operators from the same precedence level appear in an expression, the operators are evaluated either left to right or right to left depending on the associativity of that group. For example, the following expression will be evaluated left to right because both operators are in the same precedence level and this is the rule dictated by the corresponding associativity:
 
<pre>
int x = 10 * 20 / 5;
</pre>
== Overriding Operator Precedence ==

Navigation menu