Chapter 6. Working with Arrays

Most of the examples in this book have dealt with two general data types: numbers and characters. These are useful, common variables but nowhere near as potent as arrays, the type you'll learn about in this chapter.

Before we start working with arrays, we'll introduce the concept, the syntax, and how to go about defining arrays. After that, we'll run through two methods of assigning values to your arrays. Then, we'll access the assigned values and print them out. Finally, we'll examine four key array-related ideas: using constants to define arrays, using loops with arrays, working with character arrays, and working with multidimensional arrays.

Get C Programming: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.