21. Dealing with Arrays
The really nice thing about this chapter is that it covers absolutely nothing new. You’ve already worked with arrays throughout the book when storing strings in character arrays. 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 is just a list of floating-point values that has a name. Instead of referring to each of the array elements by a different name, you refer to them ...
Get C Programming Absolute Beginner’s Guide, Third 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.