CHAPTER 5

image

Pointers and Multidimensional Arrays

Multidimensional arrays are one of the most important programming constructs in any programming language. From 2D, 3D, and onward, arrays are considered to be multidimensional. There are various syntaxes in C that are used to access multidimensional arrays. These syntaxes can sometimes take a very cryptic form and become difficult to understand. This chapter gives insight into the memory layout of multidimensional arrays and the ways the array indices are accessed with the help of pointers.

Before you start reading this chapter, you should keep in mind that some of the source code listed in this ...

Get Pointers in C: A Hands on Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.