21. How Does C Work with Lists?

Using Arrays

image

The really nice thing about this chapter is that it covers absolutely nothing new. You’ve worked with arrays when you’ve stored strings in character arrays throughout this book. This chapter simply hones that concept of arrays and demonstrates that you can create an array of any data type, not just the char data type.

As you know, an array of characters is just a list of characters that has a name. Similarly, an array of integers is just a list of integers that has a name, and an array of floating-point values ...

Get Absolute Beginner’s Guide to C, 2nd Edition 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.