Next: Array Bounds
Up: Arrays
Previous: An Array Example
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.
- How can you tell that ``N'' is an array?
Click here for the answer
- How can you read from or write to an array element?
Click here for the answer
- How could you change this program so that it read and printed out 12
numbers instead of 10?
Click here for the answer
- 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