CHAPTER

8

Multidimensional Arrays

8.1 Introduction to Two-Dimensional Arrays

8.2 Input of Two-Dimensional Arrays

8.3 Output of Two-Dimensional Arrays

8.4 Manipulation of Arrays

8.5 Passing Arrays to Functions

8.6 Higher-Dimensional Arrays

8.7 Sample Programs

Chapter Summary

Exercises

Objectives

To process data in the form of rows and columns representing tables, determinants, and matrices. Also, to process data in more than two dimensions as multidimensional arrays.

Homogeneous tabular data in the form of rows and columns is stored in two-dimensional arrays. Points in a two-dimensional space-coordinate system represented as f(x, y) may be stored either as two one-dimensional arrays x[ ] and y[ ] or as a two-dimensional array pt[ ][ ]. Variables ...

Get C Programming for Scientists and Engineers with Applications 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.