revised 11/25/99, 01/23/00

CHAPTER 46 --- Arrays

Often a program must deal with a large amount of data. Fortunately, data can usually be organized and processed systematically. Arrays are very useful for organizing and storing data. This chapter will discuss arrays and give some examples of how they work.

Chapter Topics:

  • The idea of arrays.
  • Array declaration.
  • Array declaration and construction.
  • Using arrays.
  • Automatic bounds checking.
  • Initializer lists.

QUESTION 1:

Say that you are writing a program that reads and stores 100 numbers. Are you happy to write 100 input statements with 100 different variables?

Click Here after you have answered the question