Playing with pointers in C++

By David A Saenz

Purdue University

Published on

Abstract

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.

Credits

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++," https://nanohub.org/resources/14107.

    BibTex | EndNote

Tags