<?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="Constant (computer programming) - Page 6 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Constant_(computer_programming)&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Constant_%28computer_programming%29&amp;p=7">3.Next</a>
</p>
<p>to a constant to be a syntax error, while in other languages they are considered syntactically the same (both simply an identifier), and the difference in treatment is semantic (assignment to an identifier is syntactically valid, but if the identifier is a constant it is semantically invalid).</p>

<p>A constant value is defined once and can be referenced many times throughout a program. Using a constant instead of specifying the same value multiple times can simplify code maintenance (as in <a href="page.php?w=don%27t_repeat_yourself">don't repeat yourself</a>)</p><p>
<a accesskey="1" href="page.php?w=Constant_(computer_programming)&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Constant_%28computer_programming%29&amp;p=7">3.Next</a>
</p>

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

</card>
</wml>
