EmbLogic's Blog

Dynamic memory allocation

Malloc-> It is used to allocate memory at run time in to the RAM. The prototype function is used is in stdlib.h,
Syntax-> ptr=int * (malloc) (sizeof bytes)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>