Friday, March 9, 2012

Alice Programming (arrays)?

Why is an array said to be an "ordered" collection of elements?Alice Programming (arrays)?
Arrays are ordered because they store the order that items are placed in them. While the items may not be sorted alphanumerically or just plain numerically, the items exist in an array at a fixed index. As a programmer, one could chose to load something different into an array at a particular index, but you could re-address it at the same spot.Alice Programming (arrays)?
"ordered" because each item in the array has a specific index

No comments:

Post a Comment