First page Back Continue Last page Graphics
SEQUENTIAL versus RANDOM ACCESS
Both versions of our extract_fails function access the container elements only sequentially.
If we stated students[i], we are implying that we might access student's elements in any order.
Different types of containers have different performance characteristics and support different operations.
Since we know our function only needs sequential access, we do not need to use indices.