<?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 5 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Constant_(computer_programming)&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Constant_%28computer_programming%29&amp;p=6">3.Next</a>
</p>

<p>Typical examples of run-time constants are values calculated based on inputs to a function, such as this <a href="page.php?w=C%2B%2B">C++</a> example:</p>

<p><syntaxhighlight lang=cpp>import std;</syntaxhighlight></p>

<p>using std::string;</p>

<p>void f(string& s) {    const size_t len = s.length();    // ...}</p>

<p><big>Use</big></p>
<p>Some <a href="page.php?w=programming_language">programming language</a>s make an explicit syntactic distinction between constant and variable symbols, for example considering <a href="page.php?w=Assignment_%28computer_science%29">assignment</a></p><p>
<a accesskey="1" href="page.php?w=Constant_(computer_programming)&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Constant_%28computer_programming%29&amp;p=6">3.Next</a>
</p>

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

</card>
</wml>
