Chapter 10. ARRAYS AND POINTERS

I l @ ve RuBoard

Chapter 10. ARRAYS AND POINTERS

You will learn about the following in this chapter:

  • Keyword

     static 
  • Operators

     & *(unary) 

In this chapter, you learn how to create and initialize arrays. Along the way, you strengthen your knowledge of pointers and see how they relate to arrays. You also write functions that process arrays and explore two-dimensional arrays.

People turn to computers for tasks like tracking monthly expenses or daily rainfall or quarterly sales or weekly weights. 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 takes a more thorough look. In particular, it examines how to write array-processing functions. Such functions enable you to extend the advantages of modular programming to arrays. In doing so, you can see the intimate relationship between arrays and pointers.

I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net