CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Array Slices
A slice is some substructure of an array; nothing more than a referencing mechanism
Slice Examples:
FORTRAN 90
INTEGER MAT (1 : 4, 1 : 4) MAT(1 : 4, 1)--the first column MAT(2, 1 : 4)--the second row
Ada--single-dimensioned array slice:
LIST(4..10)