O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required