<?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="C dynamic memory allocation - Page 6 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=C_dynamic_memory_allocation&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=C_dynamic_memory_allocation&amp;p=7">3.Next</a>
</p>
<p>managed, typically by allocating it from the heap (free storage), an area of memory structured for this purpose. In C, the library function <code>malloc</code> is used to allocate a block of memory on the heap. The program accesses this block of memory via a <a href="page.php?w=pointer_%28computer_programming%29">pointer</a> that <code>malloc</code> returns.  When the memory is no longer needed, the pointer is passed to <code>free</code> which deallocates the memory so that it can be used for other purposes.</p>

<p>The original description of</p><p>
<a accesskey="1" href="page.php?w=C_dynamic_memory_allocation&amp;p=5">1.Previous</a><br />
<a accesskey="3" href="page.php?w=C_dynamic_memory_allocation&amp;p=7">3.Next</a>
</p>

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

</card>
</wml>
