Support Options

Submit a Support Ticket

Home Teaching Materials Playing with pointers in C++ About

Playing with pointers in C++

By David A Saenz

Purdue University

Published on


Two simple examples of how pointers and arrays relate to each other. These examples make a pointer point to every element of a 2D and 3D array and print their elements in order using pointer arithmetic.


David Saenz

Sponsored by

NCN Project, Purdue University

Cite this work

Researchers should cite this work as follows:

  • David A Saenz (2012), "Playing with pointers 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.