<?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="Static variable - Page 1 - Wikipedia">
<p>
<a accesskey="3" href="page.php?w=static_variable&amp;p=2">3.Next</a>
</p>
<p>In <a href="page.php?w=computer_programming">computer programming</a>, a <b>static variable</b> is a <a href="page.php?w=variable_%28programming%29">variable</a> that has been <a href="page.php?w=memory_allocation">allocated</a> "statically", meaning that its <a href="page.php?w=variable_lifetime">lifetime</a> (or "extent") is the entire run of the program. This is in contrast to shorter-lived <a href="page.php?w=automatic_variable">automatic variable</a>s, whose storage is <a href="page.php?w=stack_allocation">stack allocated</a> and deallocated</p><p>
<a accesskey="3" href="page.php?w=static_variable&amp;p=2">3.Next</a>
</p>

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

</card>
</wml>
