<?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="Uninitialized variable - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=uninitialized_variable&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=uninitialized_variable&amp;p=5">3.Next</a>
</p>
<p>final value of <code>k</code> is undefined. The answer that it must be 10 assumes that it started at zero, which may or may not be true. Note that in the example, the variable <code>i</code> is initialized to zero by the first clause of the <code>for</code> statement.</p>

<p>Another example can be when dealing with <a href="page.php?w=struct">struct</a>s. In the code snippet below, we have a <code>struct student</code> which contains some variables describing the information about a student. The function <code>registerStudent</code> leaks memory</p><p>
<a accesskey="1" href="page.php?w=uninitialized_variable&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=uninitialized_variable&amp;p=5">3.Next</a>
</p>

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

</card>
</wml>
