Chapter 10. Arrays and Pointers

You will learn about the following in this chapter:

  • How to create and initialize arrays

  • Pointers (building on the basics you already know) and see how they relate to arrays

  • Writing functions that process arrays

  • Two-dimensional arrays

  • Keyword:

    static

  • Operators:

    & *(unary)

People turn to computers for tasks like tracking monthly expenses, daily rainfall, quarterly sales, or weekly weights. Enterprises turn to computers to manage payrolls, inventory, and customer transactions. As a programmer, you inevitably have to deal with large quantities of related data. Often, arrays offer the best way to handle such data in an efficient, convenient manner. Chapter 6, “C Control Statements: Looping,” introduced arrays, and this chapter ...

Get C Primer Plus, Fourth 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.