Next: Array Bounds
Up: Arrays
Previous: An Array Example

Array Details

Let's take a look at ``array3.f'' to get a better feel for how arrays are declared and used. Here are a few questions to consider.

  1. How can you tell that ``N'' is an array?

    Click here for the answer

  2. How can you read from or write to an array element?

    Click here for the answer

  3. How could you change this program so that it read and printed out 12 numbers instead of 10?

    Click here for the answer

  4. Isn't there an easier way to arrange for such changes?

    Click here for the answer

Take a look at ``array4.f'' (or view it directly). How have we improved ``array3.f''?

Click here for the answer


Next: Array Bounds
Up: Arrays
Previous: An Array Example

Hamlet Project
hamlet@cs.utah.edu