<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Operator associativity - Page 8 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Operator_associativity&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Operator_associativity&amp;p=9">3.Next</a>
</p>
<p>Any <a href="page.php?w=assignment_%28computer_science%29">assignment</a> operators are typically right-associative. To prevent cases where operands would be associated with two operators, or no operator at all, operators with the same precedence must have the same associativity.</p>

<p><big> A detailed example </big></p>
<p>Consider the expression <code>5^4^3^2</code>, in which <code>^</code> is taken to be a right-associative exponentiation operator. A parser reading the tokens from left to right would apply the associativity rule to a branch, because</p><p>
<a accesskey="1" href="page.php?w=Operator_associativity&amp;p=7">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Operator_associativity&amp;p=9">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
