Support Options

Submit a Support Ticket


Playing with memory in C++

By David A Saenz

Purdue University

Published on


This resource contains a couple of programs exemplifying the use of the function “malloc” for static and dynamic memory allocation. For making the programs understandable, many details have been simplified, but the main idea, (i.e. memory allocation/deallocation) is perfectly portrayed.


David Saenz

Sponsored by

NCN Project, Purdue University

Cite this work

Researchers should cite this work as follows:

  • David A Saenz (2012), "Playing with memory in C++,"

    BibTex | EndNote

Tags, a resource for nanoscience and nanotechnology, is supported by the National Science Foundation and other funding agencies. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.