<?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="Assignment (computer science) - Page 24 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Assignment_(computer_science)&amp;p=23">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Assignment_%28computer_science%29&amp;p=25">3.Next</a>
</p>
<p>because assignments are expressions, and have values. In this case chain assignment can be implemented by having a <a href="page.php?w=Operator_associativity">right-associative assignment</a>, and assignments happen right-to-left. For example, <code>i = arr[i] = f()</code> is equivalent to <code>arr[i] = f(); i = arr[i]</code>. In <a href="page.php?w=C%2B%2B">C++</a> they are also available for values of class types by declaring the appropriate return type for the assignment operator.</p>

<p>In <a href="page.php?w=Python_%28programming_language%29">Python</a>,</p><p>
<a accesskey="1" href="page.php?w=Assignment_(computer_science)&amp;p=23">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Assignment_%28computer_science%29&amp;p=25">3.Next</a>
</p>

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

</card>
</wml>
