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